This is my code:
every 1 second:
if {cocaine.activate} is true:
loop all players:
if loop-player is not within {zone1} to {zone2}:
wait 2 ticks
add {cocaine.item} named "&eCocaine" to loop-player's inventory
message "&eUne cocaine reçue." to loop-player
stop
else:
stop
Its so glitchy, when a player go in the zone, he can have the cocaine but no one else can. But when i kill the player, another player can go recolt ! Thx
[doublepost=1519252220,1519243665][/doublepost]Oh its ok!
every 1 second:
if {cocaine.activate} is true:
loop all players:
if loop-player is not within {zone1} to {zone2}:
wait 2 ticks
add {cocaine.item} named "&eCocaine" to loop-player's inventory
message "&eUne cocaine reçue." to loop-player
stop
else:
stop
Its so glitchy, when a player go in the zone, he can have the cocaine but no one else can. But when i kill the player, another player can go recolt ! Thx
[doublepost=1519252220,1519243665][/doublepost]Oh its ok!