24.02.2010, 11:17
Quote:
Originally Posted by VonLeeuwen
Just a few improvements on your script, Gagletz,
Код:
new timertest[MAX_PLAYERS]; // on top forward Timer1(playerid); // on top // at the onplayercommandtext callback: if (strcmp("/usecanon", cmdtext, true, 9) == 0) { if (timertest[playerid] == 0) { if (IsPlayerInRangeOfPoint(playerid, 1, -1367.8082,-2327.3691,43.6029)) { GivePlayerWeapon(playerid, 35, 1); timertest[playerid] = 1; SetTimer("Timer1", 60000, false); } } return 1; } //The timer, new callback: public Timer1(playerid) { if (timertest[playerid] == 1) { timertest[playerid] = 0; } return 1; // return 1 - or mybe not.. dnt know :D } |