07.06.2009, 18:58
Code:
SetPlayerTeamFromClass(playerid) { new classid = GetPlayerSkin(playerid); if (classid == 0) { gTeam[playerid] = TEAM_GROVE; } else { gTeam[playerid] = TEAM_BALLA; } return 1; } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, TEAM_GROVE_COLOR); } else if (gTeam[playerid] == TEAM_BALLA) { SetPlayerColor(playerid, TEAM_BALLA_COLOR); } return 1; }