09.10.2012, 12:23
I have a Cops And Robbers gm.I want a code which jails cops when they kill innocent's.
public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] == COPS && gTeam[playerid] == INNOCENT) //WARNING!! You have to edit it according to your script!! thats just an example!
TogglePlayerControllable(playerid,true);
SetPlayerPos(player1,197.6661,173.8179,1003.0234);
SetPlayerInterior(player1,3);
SetCameraBehindPlayer(playerid);
return 1;
}