Sync Command
#3

Create a variable for every user and save the unix timestamp (gettime() + 3 * 60) when the command is executed and test if when it is executed again, the saved timestamp is bigger than the one gettime() returns then. If it is, give them a message or what ever that he has to wait.

Edit: please don't use a timer, it's not necessary and takes up a lot of performance for many users/commands.
Reply


Messages In This Thread
Sync Command - by Blackazur - 14.05.2014, 19:51
Re: Sync Command - by Ciandlah - 14.05.2014, 19:57
Re: Sync Command - by Madd92 - 14.05.2014, 19:59
Re: Sync Command - by Abagail - 14.05.2014, 19:59
Re: Sync Command - by Ciandlah - 14.05.2014, 20:00
Re: Sync Command - by Madd92 - 14.05.2014, 20:02
Re: Sync Command - by Vince - 14.05.2014, 20:19
Re: Sync Command - by DaniceMcHarley - 14.05.2014, 21:08

Forum Jump:


Users browsing this thread: 2 Guest(s)