Quote:
Originally Posted by funky1234
pawn Код:
//The cmd: if (strcmp("/test", cmdtext, true, 5) == 0) { SetPlayerWantedLevel(playerid, 5); return 1; }
//The forward: forward WantedLevel();
//The timer: SetTimer("WantedLevel", 500, 1); <--------------------- Here
//The loop: public WantedLevel() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerSpawned[i] == 1) { new wantedlevel = GetPlayerWantedLevel(i);
if(wantedlevel == 0) SetPlayerToTeamColour(i);
if(wantedlevel >= 1) SetPlayerColor(i, COLOR_WANTED);
} } }
Where is the timer?
|
This is really bugging me now lol
EDIT: The problem is related to my registration system. (Please close)