Posts: 98
Threads: 34
Joined: May 2012
Reputation:
0
hey i wanna ask , how to make cmd just can use only 1x ?
if player already use cmd and he can't use it again and must wait 20 minutes for use it again.
thanks
rep ++
Posts: 889
Threads: 4
Joined: Mar 2013
Reputation:
0
Make some kind of variable that is either true or false: for example commandCooldown. This will track if the user can use the command or still has to wait.
When the user uses the command, the command will check if the cooldown variable is 0. If it is, do whatever the command needs to do, set the cooldown variable to 1 and start a 20 minute timer. When the timer runs out, simply let it change the players cooldown variable back to 0, so the command doesn't give an error anymore.
That clear enough for you?
Posts: 98
Threads: 34
Joined: May 2012
Reputation:
0
still make me confused . can give a little bit example ?
thanks before