09.02.2010, 13:16
Quote:
Originally Posted by ray187
In OnPlayerSpawn you simply distinguish between teams by if-statements.
If(blala team_ballas) { ... SetPlayerInterior(...); ... } else if(blabla team_somethingelse{ SetPlayerInterior(...); } |
Code:
if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, COLOR_GREEN); SetPlayerInterior(playerid, 1); SetPlayerInterior(playerid, 2); SetPlayerInterior(playerid, 3); } if(gTeam[playerid] == TEAM_SBF) { SetPlayerColor(playerid, COLOR_GREEN); SetPlayerInterior(playerid, 0); } if(gTeam[playerid] == TEAM_TDF) { SetPlayerColor(playerid, COLOR_GREEN); SetPlayerInterior(playerid, 0); } if(gTeam[playerid] == TEAM_BALLAS) { SetPlayerColor(playerid, COLOR_PURPLE); SetPlayerInterior(playerid, 5); SetPlayerInterior(playerid, 15); SetPlayerInterior(playerid, 0); } etc...