05.06.2013, 20:02
Why bother using a timer when you can use gettime() or GetTickCount()
It's pretty simple
See absolutely no need for timer.
It's pretty simple
pawn Код:
// Define your specific cool down time
#define COOLTIME_SOMETHING 300 // 5 Minutes
// Use time of the cool down time for each player
new UseTime[MAX_PLAYERS]
// Used in any command/function to check and set a players cool down time
.......
if(gettime() - UseTime[playerid] > COOLTIME_SOMETHING)
{
UseTime[playerid] = gettime();
......
}