SetPlayerColor 2 questions
#7

pawn Код:
new PlayerText3D:wantedLabel[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
    for(new aCop = 0; aCop < MAX_PLAYERS; aCop++)
    {
        if(gTeam[aCop] == POLICE)
        {
            wantedLabel[playerid] = CreatePlayer3DTextLabel(aCop, "WANTED", 0xFF0000FF, 0, 0, 0.4, 40.0, playerid);
            if(GetPlayerWantedLevel(playerid) >= 1)
                SetPlayerMarkerForPlayer(aCop, playerid, 0xFF0000FF);
            else if(GetPlayerWantedLevel(playerid) == 0)
                SetPlayerMarkerForPlayer(aCop, playerid, ORANGE);
        }
    }
    return 1;
}
This should work, though I'm unable to test it, as I'm only one person.
Though it will create the label over and over, but I'm not here to do everything for you, so I'll leave that for you to fix.
Reply


Messages In This Thread
SetPlayerColor 2 questions - by Stu1 - 25.10.2012, 21:32
Re: SetPlayerColor 2 questions - by Catalyst- - 25.10.2012, 22:03
Re: SetPlayerColor 2 questions - by Stu1 - 25.10.2012, 22:36
Re: SetPlayerColor 2 questions - by Catalyst- - 25.10.2012, 22:54
Re: SetPlayerColor 2 questions - by Stu1 - 25.10.2012, 23:09
Re: SetPlayerColor 2 questions - by Stu1 - 26.10.2012, 00:41
Re: SetPlayerColor 2 questions - by Catalyst- - 26.10.2012, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)