SA-MP Forums Archive
Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem (/showthread.php?tid=313412)



Problem - Face9000 - 25.01.2012

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


Re: Problem - Face9000 - 25.01.2012

bump


Re: Problem - Konstantinos - 25.01.2012

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



Re: Problem - Face9000 - 25.01.2012

Same.


Re: Problem - Face9000 - 26.01.2012

Bump


Re: Problem - MasterJoker - 26.01.2012

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


Re: Problem - iZN - 26.01.2012

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.


Re: Problem - Face9000 - 26.01.2012

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.


Re: Problem - iZN - 26.01.2012

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


Re: Problem - Face9000 - 26.01.2012

Nope,i dont use Skype/xFire.