[HELP] Police and Civil jail
#5

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(GetPlayerTeam(killerid) == TEAM_POLICE) //you must have defined TEAM_POLICE or change it to whatever you use to determine team
    {
        if(GetPlayerWantedLevel(playerid) < 1) // killed player isn't wanted
        {
            SetPlayerPos(killerid,1326.2231,-911.3596,49.0754); // set his pos to jail
            SendClientMessage(killerid,-1,"You've been jailed for killing innocent player!"); // inform him why he is jailed
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Police and Civil jail - by c0GI - 10.05.2012, 14:42
Re: [HELP] Police and Civil jail - by Squirrel - 10.05.2012, 14:52
Re: [HELP] Police and Civil jail - by c0GI - 10.05.2012, 14:53
Re: [HELP] Police and Civil jail - by c0GI - 10.05.2012, 15:42
Re: [HELP] Police and Civil jail - by [MG]Dimi - 10.05.2012, 18:53

Forum Jump:


Users browsing this thread: 2 Guest(s)