if player's tool is {test}:
if player is in region "spawn":
stop
else:
if {cooldown::%player%} is not set or {cooldown::%player%} is less than now:
set {cooldown::%player%} to now + 60 seconds
loop all entities in radius 3 of player:
if loop-entity is not player:
apply nausea to loop-entities for 5 seconds
else:
send "&cYou must wait before using this again!" to player``` When i parsed this it said i needed an if before the else on line 5, how do i do that?
#help
1 messages · Page 1 of 1 (latest)
It's saying you can merge the
else:
if...:
into just
else if...:
oh
Maybe
if player's tool is {test}:
if player is in region "spawn":
stop
else:
if {cooldown::%player%} is not set or {cooldown::%player%} is less than now:
set {cooldown::%player%} to now + 60 seconds
loop all entities in radius 3 of player:
if loop-entity is not player:
apply nausea to loop-entities for 5 seconds
else:
send "&cYou must wait before using this again!" to player```
whoops..
it messed up
i thought you had modified the code
anyways you need to split up your or condition using if any like so:
if any:
{cooldown::%player%} is not set
{cooldown::%player%} is less than now
then:
