06.08.2012, 18:00
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.
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