Problem
#1

Hello guys,i've this code:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == COP)
    {
        SetPlayerColor(playerid,COLOR_BLUE);
    }

    if(gTeam[playerid] == CIV)
    {
        SetPlayerColor(playerid,COLOR_WHITE);
    }
    SetPlayerInterior(playerid,0);
    return 1;
}
And a problem with the chat.

When someone uses chat,the player name color is ORANGE and not as set OnPlayerSpawn

The COP should have COLOR_BLUE in the chat as playername,and CIV COLOR_WHITE,but for both is ORANGE
Reply
#2

bump
Reply
#3

pawn Код:
SetPlayerToTeamColor( playerid )
{
    if( gTeam[ playerid ] == COP )
    {
        SetPlayerColor( playerid, COLOR_BLUE );
    }
    else if( gTeam[ playerid ] == CIV )
    {
        SetPlayerColor( playerid, COLOR_WHITE );
    }
}
Reply
#4

Same.
Reply
#5

Bump
Reply
#6

well take a look around the publics that are related in onplayertext and check if that ORANGE Color code is there
Reply
#7

I think you're using some other scripts or something which is making every player orange colour. Try seeing the code of the other scripts which you are using as filterscripts.
Reply
#8

Quote:
Originally Posted by [GTA]Deadly_Evil
Посмотреть сообщение
I think you're using some other scripts or something which is making every player orange colour. Try seeing the code of the other scripts which you are using as filterscripts.
Nope,no other scripts because the gm is from scratch And i can't find nothing about that make orange the player.

Quote:
Originally Posted by MasterJoker
well take a look around the publics that are related in onplayertext and check if that ORANGE Color code is there
Nope,it's not there.
Reply
#9

If you're on skype or xFire, PM me.
Reply
#10

Nope,i dont use Skype/xFire.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)