Wanted Level Cool Down Problem
#2

Change the MySetPlayerWanted into a stock
Also show how you use the public, how u call the whole thing at first
edit
pawn Код:
new WantedDown_Timer[MAX_PLAYERS];
stock MySetPlayerWantedLevel(playerid,lvl)
{
    SetPlayerWantedLevel(playerid,lvl);//set the current minus level before you check it again becouse is going to be the same
    if(GetPlayerWantedLevel(playerid)>=1)WantedDown_Timer[playerid]=SetTimer("WantedDown", 5000, true);
    else KillTimer(WantedDown_Timer[playerid]);
    return1 1;
}
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;
}
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)