26.10.2012, 00:44
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;
}
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.