hello, i need help.
im making a autotip system on skript but i have a error.
This is the code:
im making a autotip system on skript but i have a error.
This is the code:
Code:
#==============================[AutoTIP]==============================#
command /tipauto [<player>]:
permission: {@rankmvp+}
trigger:
set {_p} to random element of all players in arg-1
if arg-1 is not set:
make console execute command "sw give coins %arg-1% 100"
send "&aUn Jugador te ha dado propina y has recibido 100 coins en skywars." to arg-1
send "&aHas dado propina a %arg-1% en Skywars y has recibido 100 coins." to player
if arg-1 is set:
make console execute command "sw give coins %arg-1% 100"
send "&aUn Jugador te ha dado propina y has recibido 100 coins en skywars." to arg-1
send "&aHas dado propina a %arg-1% en Skywars y has recibido 100 coins." to player
every 30 seconds:
loop all players:
execute loop-player command "/tipauto"