27.11.2011, 01:24
(
Последний раз редактировалось Johny_Vett; 03.12.2011 в 17:35.
)
sss%s
if(gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if(gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0 || classid == 1 || classid == 2)
{
gTeam[playerid] = TEAM_GROVE;
}
if (classid == 3 || classid == 4 || classid == 5)
{
gTeam[playerid] = TEAM_BALLAS;
}
if (classid == 6 || classid == 7 || classid == 8)
{
gTeam[playerid] = TEAM_AZTECAS;
}
if (classid == 9 || classid == 10 || classid == 11)
{
gTeam[playerid] = TEAM_DANANGBOYS;
}
if (classid == 12 || classid == 13 || classid == 14)
{
gTeam[playerid] = TEAM_SFRIFA;
}
if (classid == 15 || classid == 16 || classid == 17)
{
gTeam[playerid] = TEAM_VAGOS;
}
if (classid == 18 || classid == 19 || classid == 20)
{
gTeam[playerid] = TEAM_SWAT;
}
else if (classid == 21 || classid == 22 || classid == 23)
{
gTeam[playerid] = TEAM_ADMIN;
}
}