Trying to make a cooldown timer
#2

First of all its a wrong section.

Secondly you should use gettime() and assign it to players variable (can be SetPVarInt), then when he tries to turn/shut the engine check if the specified time has passed.

pawn Код:
SetPVarInt(playerid, "Time", gettime() + 5); // <--- 5 seconds

//---

if(gettime() > GetPVarInt(playerid, "Time"))
//do the code
Reply


Messages In This Thread
Trying to make a cooldown timer - by A7X_CEEJAY - 06.08.2012, 17:56
Re: Trying to make a cooldown timer - by Universal - 06.08.2012, 18:00
Re: Trying to make a cooldown timer - by Dubya - 06.08.2012, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)