Wanted Level Help.
#1

Okey, I own a DM Server, so I want when a player kills someone he gets a wanted star, but it continues until its 6 stars.Can someone show me how to script it?
Reply
#2

Here you go.
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
To add another star to the current wanted level, you can just do
pawn Код:
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
Reply
#3

pawn Код:
SetPlayerWantedLevel(killerid,  GetPlayerWantedLevel(killerid)+1);
Add this in OnPlayerDeath
Reply
#4

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

Thanks Guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)