General Help
#1

How do I make a timer and apply it to a command ? Like for example /usecrack and then once they have done that they need to wait for like 30-45 seconds? How would I make it so that it sets a variable from 0 to 1 and if its 1 you can't use it and when the timer runs out it sets it to 0 which allows you to use it?
Reply
#2

You don't need a timer to do that... just use gettime()

pawn Код:
// used crack? get the time
cracktime[playerid] = gettime();

// Tried to use crack check the time
if(gettime() - cracktime[playerid] > 45)
How hard is that ?
Reply
#3

nvm pottus was faster
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)