ASK CMD
#2

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?
Reply


Messages In This Thread
ASK CMD - by [IND]Crazy - 01.04.2014, 16:27
Re: ASK CMD - by Sithis - 01.04.2014, 16:30
Re: ASK CMD - by [IND]Crazy - 01.04.2014, 16:32
Re: ASK CMD - by CroM256 - 01.04.2014, 16:36
Re: ASK CMD - by Sithis - 01.04.2014, 16:40
Re: ASK CMD - by Konstantinos - 01.04.2014, 17:15
Re: ASK CMD - by [IND]Crazy - 01.04.2014, 17:30

Forum Jump:


Users browsing this thread: 7 Guest(s)