28.11.2012, 20:27
Hey Guys......................
I Made Here When Player Have Wanted Level A Timer Starts To Cool The Wanted Levels Down But When Timer Finishes It Starts Spamming The Player Chat+Wanted Levels Up And Down
Code:
NOTE: I Made It 5 Sec To Test, So When Player Have Wanted Timer Starts, When 5 Min Pass, It Start Spamming
I Made Here When Player Have Wanted Level A Timer Starts To Cool The Wanted Levels Down But When Timer Finishes It Starts Spamming The Player Chat+Wanted Levels Up And Down
Code:
pawn Код:
new WantedDown_Timer[MAX_PLAYERS];
MySetPlayerWantedLevel(playerid,lvl)
{
if(GetPlayerWantedLevel(playerid)>=1)WantedDown_Timer[playerid]=SetTimer("WantedDown", 5000, true);
else KillTimer(WantedDown_Timer[playerid]);
}
forward public WantedDown(playerid);
public WantedDown(playerid)
{
SendClientMessage(playerid, COLOR_GOLD, "You WantedLevel Has Decreased.");
MySetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)- 1);
KillTimer(WantedDown_Timer[playerid]);
return 1;
}