[HELP] /AR or kill - 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: [HELP] /AR or kill (
/showthread.php?tid=558554)
[HELP] /AR or kill -
Thoma - 17.01.2015
Hey so in my server we have the arrest system but how would i fix it to when the players die with an wanted level they dont lose it unless an cop kills them?
Re: [HELP] /AR or kill -
CalvinC - 17.01.2015
Just remove the code under OnPlayerDeath that removes the wanted level.
Re: [HELP] /AR or kill -
Thoma - 17.01.2015
well i did that but now how would i make it ti where if an cop kills them they are sent to jail?
Re: [HELP] /AR or kill -
nezo2001 - 17.01.2015
I think you can make
Under OnPlayerDeath
PHP код:
new wanted = GetPlayerWantedLevel(playerid);
if(PlayerInfo[killerid][pPolice] > 0) //Change it to your police saves
{
SetPlayerWantedLevel(playerid, wanted);
}
I think this might work
Re: [HELP] /AR or kill -
CalvinC - 17.01.2015
Under OnPlayerDeath, check if the killerid is a police officer with your variable, then if he is, copy your arrest code to arrest him.