SetPlayerColor Not working ... Help :)
#1

SetPlayerColor Isn't Working On OnPlayerSpawn

Код:
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906);
SetPlayerColor(playerid, COLOR_BLACK);
}
The Color Remains White only but the position works And when during my robbery Also The Player Color Works Only this one not working Y
Reply
#2

I think your not saving the team to the player variables.Thats why its not working.
Reply
#3

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
I think your not saving the team to the player variables.Thats why its not working.
This.
In a simple way ---> Did you even set gTeam to TEAM_COP on OnPlayerRequestClass?
Reply
#4

yes i did green see
Код:
 case 0: 
        { 
            GameTextForPlayer( playerid, "~b~COPS", 500, 3 );
            gTeam[playerid] = TEAM_COPS;
        }
Reply
#5

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
Код:
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906);
SetPlayerColor(playerid, COLOR_BLACK);
}
Your 'COLOR_BLACK' may not be defined correctly.
Try using this -
pawn Код:
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906);
SetPlayerColor(playerid, 0x000000C8);
}
Reply
#6

Not working
Reply
#7

Try this:
Код:
if(gTeam[playerid] == TEAM_COPS)
{
    SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906);
    SetPlayerColor(playerid, 0x000000FF);
}
That should fix the problem
Reply
#8

not working ... Anything else ?
Reply
#9

I m sure that your team vars didn't setted currectly.
show the OnPlayerRequestSpawn callback
Reply
#10

here
Код:
 case 0: 
        { 
            GameTextForPlayer( playerid, "~b~COPS", 500, 3 );
            gTeam[playerid] = TEAM_COPS;
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)