13.10.2009, 16:19
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(IsPlayerConnected(killerid))
{
if(IsACop(killerid))
{
if(WantedLevel[playerid] >=1)
{
SendClientMessage(killerid, COLOR_YELLOW,"*?????????? ??? ??????? ? ??????");
PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(600);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pWantedDeaths] += 1;
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 264.6288,77.5742,1001.0391);
}
}
}
return 1;
}