Posts: 84
Threads: 27
Joined: Jul 2011
Reputation:
0
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?
Posts: 84
Threads: 27
Joined: Jul 2011
Reputation:
0
cop dont work as they have no stars? anyway around this?
Posts: 3,004
Threads: 12
Joined: May 2011
pawn Код:
public OnPlayerUpdate( playerid ) {
if(GetPlayerSkin(playerid) != 265 && GetPlayerSkin(playerid) != 266 && GetPlayerSkin(playerid) != 267 && GetPlayerSkin(playerid) != 280 && GetPlayerSkin(playerid) != 281)
{
// checks if player wanted level is bigger then 6
if(GetPlayerWantedLevel(playerid) >= 6)
{
// replace the ColorCode with your color....(0x667788 or somthing like thet..)
SetPlayerColor(playerid, ColorCode);
}
// we still didnt close it... we want to keep with it :)
// Check if the player wanted level is bigger then 0 and smaller then 5
// now y 5 and not 6? caz we have ' <= ' and not just ' < '
// <= means then the number smaller or equal to the number, so if we will put 6 it will give as a crash or somthing like thet...
if(GetPlayerWantedLevel(playerid) >= 0 && GetPlayerWantedLevel(playerid) <= 5)
{
// replace the ColorCode with your color....(0x667788 or somthing like thet..)
SetPlayerColor(playerid, ColorCode);
}