24.02.2010, 10:24
Hello, I'm trying to set a timer on a command, it should only be useable each minute. I'm quite sure I should use SetTimer, but I don't know how. Maybe this already have been explained before but I can't find any similar topic to this. This is how my command look like:
If you got any idea how to set a timer so it's only useable each minute or so please reply here.
Thanks.
pawn Код:
if (strcmp("/usecanon", cmdtext, true, 9) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1, -1367.8082,-2327.3691,43.6029))
{
GivePlayerWeapon(playerid, 35, 1);
}
return 1;
}
Thanks.