SA-MP Forums Archive
Wanted Level Help. - 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 Level Help. (/showthread.php?tid=283879)



Wanted Level Help. - Sting. - 17.09.2011

Okey, I own a DM Server, so I want when a player kills someone he gets a wanted star, but it continues until its 6 stars.Can someone show me how to script it?


Re: Wanted Level Help. - [MWR]Blood - 17.09.2011

Here you go.
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
To add another star to the current wanted level, you can just do
pawn Код:
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);



Re: Wanted Level Help. - [O.z]Caroline - 17.09.2011

pawn Код:
SetPlayerWantedLevel(killerid,  GetPlayerWantedLevel(killerid)+1);
Add this in OnPlayerDeath


Re: Wanted Level Help. - [HiC]TheKiller - 17.09.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID && GetPlayerWantedLevel(killerid) != 6) SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
    SetPlayerWantedLevel(playerid, 0);
    return 1;
}



Re: Wanted Level Help. - Sting. - 17.09.2011

Thanks Guys.