Stars per kill
#3

https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel.

I.e:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        new newwanted = GetPlayerWantedLevel(killerid) + 1;
        SetPlayerWantedLevel(killerid, newwanted);
        SetPlayerWantedLevel(playerid, 0); // optional if you want, set the dead player to wanted 0 because he died
    }
    return 1;
}
Edit: Person above me was faster, but he did it wrong.
Reply


Messages In This Thread
Stars per kill - by Sliceofdeath - 18.09.2013, 14:59
Re: Stars per kill - by [HK]Ryder[AN] - 18.09.2013, 15:02
Re: Stars per kill - by DanishHaq - 18.09.2013, 15:04
Re: Stars per kill - by alinategh - 18.09.2013, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)