superzoom11 Posted October 12, 2020 Share Posted October 12, 2020 Hi I am working on a server that has a lot of spawn killers, but since i am new to skripting i can't find a way to program a skript that gives new players grace periods where they can't hurt people or get hurt. Can anybody help me? Link to comment Share on other sites More sharing options...
ChunkerDunkers Posted October 12, 2020 Share Posted October 12, 2020 Yeah! Let me create a Skript real quickly. Hello, I'm Nolan! Cool Links Vote Please - bit.ly/3tMXajE MC Server - bit.ly/3hqYAOy Please leave a like if I helped! Link to comment Share on other sites More sharing options...
ChunkerDunkers Posted October 12, 2020 Share Posted October 12, 2020 Here you go! every second: loop all players: add 1 to {s::%loop-player's uuid%} if {s::%loop-player's uuid%} > 59: remove 60 from {s::%loop-player's uuid%} add 1 to {m::%loop-player's uuid%} if {m::%loop-player's uuid%} > 59: remove 60 from {m::%loop-player's uuid%} add 1 to {h::%loop-player's uuid%} if {h::%loop-player's uuid%} > 23: remove 24 from {h::%loop-player's uuid%} add 1 to {d::%loop-player's uuid%} command /playtime [<offlineplayer>]: trigger: arg isn't set: wait 1 tick send "" send "&f&l YOUR PLAYTIME (&7&l%player%&f)" send "" send "&f&l SECONDS:&7 %{s::%player's uuid%}%" send "&f&l MINUTES:&7 %{m::%player's uuid%}%" send "&f&l HOURS:&7 %{h::%player's uuid%}%" send "&f&l DAYS:&7 %{d::%player's uuid%}%" send "" else: wait 1 tick send "" send "&f&l PLAYTIME OF &7&l%arg%" send "" send "&f&l SECONDS:&7 %{s::%arg's uuid%}%" send "&f&l MINUTES:&7 %{m::%arg's uuid%}%" send "&f&l HOURS:&7 %{h::%arg's uuid%}%" send "&f&l DAYS:&7 %{d::%arg's uuid%}%" send "" on damage: attacker is a player Victim is a player {m::%victim%} is smaller than 30 cancel event Hello, I'm Nolan! Cool Links Vote Please - bit.ly/3tMXajE MC Server - bit.ly/3hqYAOy Please leave a like if I helped! Link to comment Share on other sites More sharing options...
superzoom11 Posted October 12, 2020 Author Share Posted October 12, 2020 Thank you so much! Link to comment Share on other sites More sharing options...
MrScopes Posted October 13, 2020 Share Posted October 13, 2020 On 10/12/2020 at 10:50 AM, ChunkerDunkers said: Here you go! every second: loop all players: add 1 to {s::%loop-player's uuid%} if {s::%loop-player's uuid%} > 59: remove 60 from {s::%loop-player's uuid%} add 1 to {m::%loop-player's uuid%} if {m::%loop-player's uuid%} > 59: remove 60 from {m::%loop-player's uuid%} add 1 to {h::%loop-player's uuid%} if {h::%loop-player's uuid%} > 23: remove 24 from {h::%loop-player's uuid%} add 1 to {d::%loop-player's uuid%} command /playtime [<offlineplayer>]: trigger: arg isn't set: wait 1 tick send "" send "&f&l YOUR PLAYTIME (&7&l%player%&f)" send "" send "&f&l SECONDS:&7 %{s::%player's uuid%}%" send "&f&l MINUTES:&7 %{m::%player's uuid%}%" send "&f&l HOURS:&7 %{h::%player's uuid%}%" send "&f&l DAYS:&7 %{d::%player's uuid%}%" send "" else: wait 1 tick send "" send "&f&l PLAYTIME OF &7&l%arg%" send "" send "&f&l SECONDS:&7 %{s::%arg's uuid%}%" send "&f&l MINUTES:&7 %{m::%arg's uuid%}%" send "&f&l HOURS:&7 %{h::%arg's uuid%}%" send "&f&l DAYS:&7 %{d::%arg's uuid%}%" send "" on damage: attacker is a player Victim is a player {m::%victim%} is smaller than 30 cancel event yikes Discord: MrScopes#5548 Link to comment Share on other sites More sharing options...
ChunkerDunkers Posted October 13, 2020 Share Posted October 13, 2020 does it work? Hello, I'm Nolan! Cool Links Vote Please - bit.ly/3tMXajE MC Server - bit.ly/3hqYAOy Please leave a like if I helped! Link to comment Share on other sites More sharing options...
Derrickpower2 Posted November 10, 2020 Share Posted November 10, 2020 On 10/13/2020 at 9:23 AM, ChunkerDunkers said: does it work? didn't work for me. When a new player joined and I asked them to test something for me I was able to attack them. Both with less than 30 minute playtime. Link to comment Share on other sites More sharing options...
ztimhirsch1 Posted November 11, 2020 Share Posted November 11, 2020 First off this is so simple, On damage: If played time of attacker is less than 30 minutes: cancel event Else if played time of victim is less than 30 minutes: cancel event 2nd. Do not post on threads with over a month of inactivity. Requesting lock for necropost. If I helped you add a reaction to my post. First Joined Oct 29 15:01 GMT 2017 VIP since 9/26/2020 Link to comment Share on other sites More sharing options...
Cosmoss Posted November 11, 2020 Share Posted November 11, 2020 @Untreated n e c r o p o s t ⁃ Owner of Shulked ⁃ ⁃ Skript Developer ⁃DEFAULT / 2018[VIP] / 2019 ⁃ DISCORD: Cosmos#2576 ⁃ ⁃ IGN: Stuudium (soon to change) ⁃- *former* ADMIN on Versa Realms - - MODERATOR on EddyEvents - Link to comment Share on other sites More sharing options...
ztimhirsch1 Posted November 11, 2020 Share Posted November 11, 2020 Cosmos, that really isnt needed and might get you in trouble. If I helped you add a reaction to my post. First Joined Oct 29 15:01 GMT 2017 VIP since 9/26/2020 Link to comment Share on other sites More sharing options...
Recommended Posts