[SOLVED] SetPlayerInterior
#4

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(...);

}
I've done that, this is how it looked like:

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...
I got some classes in the Ballas team that gonna spawn outside a interior, I guess that bugs the other ballas interior id's...
Reply


Messages In This Thread
[SOLVED] SetPlayerInterior - by FreddeN - 09.02.2010, 12:59
Re: [HELP] SetPlayerInterior - by NewYorkRP - 09.02.2010, 13:07
Re: [HELP] SetPlayerInterior - by ray187 - 09.02.2010, 13:09
Re: [HELP] SetPlayerInterior - by FreddeN - 09.02.2010, 13:16
Re: [HELP] SetPlayerInterior - by ray187 - 09.02.2010, 13:22
Re: [HELP] SetPlayerInterior - by FreddeN - 09.02.2010, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)