OnPlayerDeath
#1

Is it posible that the killerid gets one score only if the killerweapon was an Knife?
Reply
#2

Try something like this :
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerWeapon(killerid) == 4)
    {
        SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
    }
    return 1;
}
I didn't compile or test it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)