SA-MP Forums Archive
Color is not good HELP - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Color is not good HELP (/showthread.php?tid=71330)



Color is not good HELP - Frankox - 31.03.2009

HEADER:

new BALLAS;
new GROVE;
new VAGOS;


public SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE1_COLOR)
{
SetPlayerColor(playerid, GROVE);
}
else if (gTeam[playerid] == BALLAS)
{
SetPlayerColor(playerid, COLOR_DBLUE);
}
{
SetPlayerColor(playerid, COLOR_PURPLE);
}

return 1;
}




public SetPlayerTeamFromClass(playerid,classid)
{
if (classid == 0)
{
gTeam[playerid] = GROVE;
}
else
{
gTeam[playerid] = BALLAS;
}

{
gTeam[playerid] = VAGOS;
}

return 1;
}




Why the color is always orange on all skin's(the color when i press "TAB" in game) ?


Re: Color is not good HELP - _TeRmiNaToR_ - 31.03.2009

Quote:
Originally Posted by Frankox
HEADER:

new BALLAS;
new GROVE;
new VAGOS;


public SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE1_COLOR)
{
SetPlayerColor(playerid, GROVE);
}
else if (gTeam[playerid] == BALLAS)
{
SetPlayerColor(playerid, COLOR_DBLUE);
}
{
SetPlayerColor(playerid, COLOR_PURPLE);
}

return 1;
}




public SetPlayerTeamFromClass(playerid,classid)
{
if (classid == 0)
{
gTeam[playerid] = GROVE;
}
else
{
gTeam[playerid] = BALLAS;
}

{
gTeam[playerid] = VAGOS;
}

return 1;
}




Why the color is always orange on all skin's(the color when i press "TAB" in game) ?
Try this.

pawn Код:
static gTeam[MAX_PLAYERS];

#define TEAM_BLUE 1
#define TEAM_GREEN 2

public SetPlayerTeamFromClass(playerid,classid)
{
    if(classid == 0 || classid == 1) {
        gTeam[playerid] = TEAM_GREEN;
    } else if(classid == 2 || classid == 3) {
      gTeam[playerid] = TEAM_BLUE;
    }
}

public SetPlayerToTeamColor(playerid)
{
    if(gTeam[playerid] == TEAM_BLUE) {
        SetPlayerColor(playerid,TEAM_BLUE_COLOR); // blue
    } else if(gTeam[playerid] == TEAM_GREEN) {
      SetPlayerColor(playerid,TEAM_GREEN_COLOR); // green
    }
}



Re: Color is not good HELP - Frankox - 31.03.2009

Anyone of you log in my computer over TEAM VIEWER and help pls.

ID: 248 075 569
PASSWORD: 3712


Re: Color is not good HELP - Frankox - 31.03.2009

Some join to my team viewer

ID: 248 075 569
PASSWORD: 3712


Re: Color is not good HELP - _TeRmiNaToR_ - 31.03.2009

I have not Team-Viever.


Re: Color is not good HELP - Frankox - 31.03.2009

Quote:
Originally Posted by _TeRmiNaToR_
I have not Team-Viever.
http://www.teamviewer.com/index.aspx


Re: Color is not good HELP - Danut - 31.03.2009

I hope my help , helps ^^