21.09.2014, 10:30
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;
}