Wanted +1
#1

Ok so I have a wanted system and I want when a player kills someone else there wanted increases by 1 can anyone help?
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
    }
    return 1;
}
Reply
#3

Thanks ill just see if works but cant at the moment because my server crashed which I have posted in Scripting Dicussion
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)