24.07.2014, 16:58
i recommend this --
https://sampforum.blast.hk/showthread.php?tid=254915
example usage --
https://sampforum.blast.hk/showthread.php?tid=254915
example usage --
pawn Код:
new last_used[MAX_PLAYERS];//on top
if( (gettime() - last_used[playerid]) < 60*10 /*10 miins*/)//in command
{
new str[100], tim = (gettime() -last_used[playerid]) / 60;
format(str, sizeof(str), "Still %i mins left to use it", tim);
return 1;
}
last_used[playerid] = gettime();//under when command was used succesfully