2nd time for this .. problem with puting teams together
#1

Can anyone help me with this ? I wanted to make a thing like , when a player joins the gamefirstly he has to choose the country . Lets say USA. After choosing USA , he has to choose what ever he wants to be , like lets say , a soldier , a medic or what ever. I didn't want to put these teams all in one place cuz there are too many . I wanted to put them
into groups.
Like this.
COUTRY_USA has these teams USA_SOLDIER,USA_MEDIC and etc

COUTNRY_JAPAN has these teams JP_SOLDIER , JP_MEDIC and etc

And firstly i want the player to choose the country then to choose what ever he wants to be.When the player joins the game , he sees only the countries names, and not the SODLIER thing , and then after choosing the coutry , they can choose the sodlier or medic or any team.So can anyone help me ?Some people said to use grand larc and i did.Now when i choose the city i spawn with the first classid ... and i tried to do this
Код:
public SetPlayerTeamFromTeam(playerid)
{
	new team = gTeam[playerid];
	if(team == MEDIC || team == SOLDIER)
	{
		gTeam[playerid] = TEAM_USA;
	}
}
now how to do it so after i choose hte city then i choose the medic or soldier ..now in grand larc was like this
Код:
if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
 	  randSpawn = random(sizeof(gRandomSpawns_LosSantos));
 	  SetPlayerPos(playerid,
		 gRandomSpawns_LosSantos[randSpawn][0],
		 gRandomSpawns_LosSantos[randSpawn][1],
		 gRandomSpawns_LosSantos[randSpawn][2]);
		SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
	}
Anyone can help me ? and btw this is the 2nd time i post this .. noone helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)