17.08.2010, 02:57
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(!IsIllegalKill(reason)) SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
}
return 1;
}
stock IsIllegalKill(reason)
{
switch(reason)
{
case 49, 50, 51, 53, 54: return 1;
default: return 0;
}
return 0;
}