Wanted Levels... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wanted Levels... (
/showthread.php?tid=358920)
Wanted Levels... -
Deron_Green - 12.07.2012
In my server when players die wanted they lose it how would i make it so that they die they get it back?
Re: Wanted Levels... -
clarencecuzz - 12.07.2012
pawn Код:
new Wanted[MAX_PLAYERS]; //Add this before anything else, but after includes.
public OnPlayerConnect(playerid)
{
Wanted[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Wanted[playerid] = GetPlayerWantedLevel(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerWantedLevel(playerid, Wanted[playerid]);
return 1;
}
Re: Wanted Levels... -
Deron_Green - 12.07.2012
thanks i will try it out
Re: Wanted Levels... -
Tanush123 - 12.07.2012
How is it possible to lose stars after you die, do you have a code where it sets their stars to 0?