how to work ? D:
#2

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;
}
Reply


Messages In This Thread
how to work ? D: - by willsuckformoney - 17.08.2010, 02:51
Re: how to work ? D: - by PotH3Ad - 17.08.2010, 02:57
Re: how to work ? D: - by Kitten - 17.08.2010, 02:57
Re: how to work ? D: - by willsuckformoney - 17.08.2010, 02:58

Forum Jump:


Users browsing this thread: 1 Guest(s)