[HELP] /AR or kill
#1

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?
Reply
#2

Just remove the code under OnPlayerDeath that removes the wanted level.
Reply
#3

well i did that but now how would i make it ti where if an cop kills them they are sent to jail?
Reply
#4

I think you can make
Under OnPlayerDeath
PHP код:
new wanted GetPlayerWantedLevel(playerid);
if(
PlayerInfo[killerid][pPolice] > 0//Change it to your police saves
{
SetPlayerWantedLevel(playeridwanted);

I think this might work
Reply
#5

Under OnPlayerDeath, check if the killerid is a police officer with your variable, then if he is, copy your arrest code to arrest him.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)