Wanted Levels...
#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


Messages In This Thread
Wanted Levels... - by Deron_Green - 12.07.2012, 04:01
Re: Wanted Levels... - by clarencecuzz - 12.07.2012, 04:10
Re: Wanted Levels... - by Deron_Green - 12.07.2012, 04:14
Re: Wanted Levels... - by Tanush123 - 12.07.2012, 05:21

Forum Jump:


Users browsing this thread: 1 Guest(s)