Wanted Levels...
#1

In my server when players die wanted they lose it how would i make it so that they die they get it back?
Reply
#2

pawn Код:
new Wanted[MAX_PLAYERS]; //Add this before anything else, but after includes.

public OnPlayerConnect(playerid)
{
    Wanted[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    Wanted[playerid] = GetPlayerWantedLevel(playerid);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerWantedLevel(playerid, Wanted[playerid]);
    return 1;
}
Reply
#3

thanks i will try it out
Reply
#4

How is it possible to lose stars after you die, do you have a code where it sets their stars to 0?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)