how to work ? D:
#1

pawn Код:
if(WeaponID == 49 && 50 && 51 && 52 && 53 && 54)
    {
        SetPlayerWantedLevel(killerid,0);
    }
How to make it so that when they die from

- 49 - Vehicle
- 50 - Helicopter blades
- 51 - Explosion
- 53 - Drowned
- 54 - Collision

then the person who died wont gain wanted? D:

btw
Код:
error 017: undefined symbol "WeaponID"
Reply
#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
#3

EDIT: Hes posted it :P
Reply
#4

tanks lol works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)