28.11.2012, 20:51
Change the MySetPlayerWanted into a stock
Also show how you use the public, how u call the whole thing at first
edit
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;
}