In-game Colors?
#7

Quote:
Originally Posted by phil_lendon
Посмотреть сообщение
Right so i dont know how to do this (this is the whole point of learning) but this is what i want
people with 6 stars = Red Name
People with 0 stars = white name
class id 2 (team whatever) = blue
how can i do this?
pawn Код:
public OnPlayerUpdate(playerid)
{
     if (GetPlayerWantedLevel(playerid) >= 6 && GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFF0000FF); }
     else if (GetPlayerWantedLevel(playerid) < 6 && GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFFFFFFFF); }
     return true.
}

public OnPlayerSpawn(playerid)
{
     if (GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFFFFFFFF); }
     else if (GetPlayerTeam(playerid) == 2) { SetPlayerColor(playerid, 0x00CCFFFF); }
     return true.
}
+I don't recommend using onplayerupdate thoug.
Reply


Messages In This Thread
In-game name Colors? - by phil_lendon - 28.07.2011, 18:59
Re: In-game Colors? - by Mean - 28.07.2011, 19:16
Re: In-game Colors? - by phil_lendon - 28.07.2011, 19:38
Re: In-game Colors? - by phil_lendon - 28.07.2011, 20:22
Re: In-game Colors? - by Amit_B - 28.07.2011, 21:51
Re: In-game Colors? - by Kaperstone - 28.07.2011, 22:17
Re: In-game name Colors? - by iPLEOMAX - 28.07.2011, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)