14.08.2011, 12:15
You could do this without a timer by using Unix timestamps. You can find a real thorough tutorial on them here: https://sampforum.blast.hk/showthread.php?tid=254915
You would store the value of the timestamp the first time the player succeeds the command. Then every time the player types the command, check the current stamp - the variables value, and see if it's greater than the time you want them to have to wait. If so, they can use the command again.
You would store the value of the timestamp the first time the player succeeds the command. Then every time the player types the command, check the current stamp - the variables value, and see if it's greater than the time you want them to have to wait. If so, they can use the command again.