Making team and colors errors
#8

pawn Код:
#define COL_GREEN 0x04FF00FF
#define COL_PURPLE 0x470054FF
#define COL_YELLOW 0xFAFF00FF
#define COL_LIGHTBLUE 0x3399FFAA

#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_AZTECAS 4

public OnPlayerSpawn(playerid)
{
    new skin = GetPlayerSkin(playerid);
    switch(skin)
    {
        case 105 .. 107:
        {
            SetPlayerTeam(playerid, TEAM_GROVE);
            SetPlayerColor(playerid, COL_GREEN);
        }
        case 102 .. 104:
        {
            SetPlayerTeam(playerid, TEAM_BALLAS);
            SetPlayerColor(playerid, COL_PURPLE);
        }
        case 108 .. 110:
        {
            SetPlayerTeam(playerid, TEAM_VAGOS);
            SetPlayerColor(playerid, COL_YELLOW);
        }
        case 114 .. 116:
        {
            SetPlayerTeam(playerid, TEAM_AZTECAS);
            SetPlayerColor(playerid, COL_LIGHTBLUE);
        }
    }
    return 1;
}
Edit: Oops, nvm, didn't see the other guy's above post, because I was in the writing a comment screen
Reply


Messages In This Thread
Making team and colors errors - by YanLanger - 21.09.2014, 03:58
Re: Making team and colors errors - by MasonSFW - 21.09.2014, 04:32
Re: Making team and colors errors - by YanLanger - 21.09.2014, 10:14
Re: Making team and colors errors - by YanLanger - 21.09.2014, 10:18
Respuesta: Making team and colors errors - by ghost556 - 21.09.2014, 10:23
Re: Making team and colors errors - by YanLanger - 21.09.2014, 10:25
Respuesta: Making team and colors errors - by ghost556 - 21.09.2014, 10:28
Re: Making team and colors errors - by Ox1gEN - 21.09.2014, 10:30

Forum Jump:


Users browsing this thread: 3 Guest(s)