Wanted Level Cool Down Problem
#1

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:

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;
}
NOTE: I Made It 5 Sec To Test, So When Player Have Wanted Timer Starts, When 5 Min Pass, It Start Spamming
Reply


Messages In This Thread
Wanted Level Cool Down Problem - by GoldZoroGrab - 28.11.2012, 20:27
Re: Wanted Level Cool Down Problem - by park4bmx - 28.11.2012, 20:51
Re: Wanted Level Cool Down Problem - by GoldZoroGrab - 28.11.2012, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)