Need a bit help about Teams
#1

I know to set team and spawn players with skin or team.

But I need small help how i can show the team first after player select team the skins of that team will show only.
Like TEAM_POLICE is chosen by the player now it show him skins of POLICE?

Kindly help me out.

Код:
new TeamCount[MAX_PLAYERS];
public OnPlayerRequestClass(playerid,classid)
{
	TogglePlayerControl(playerid, 1);
  	SetPlayerVirtualWorld(playerid, 25);
	switch(TeamCount[playerid])
	{
 	 	case 0:
		{
  		gTeam[playerid] = TEAM_POLICE;
//Camera code under it or team name textdraw
		}
		case 1:
		{
		gTeam[playerid] = TEAM_GROVE;
//Camera code under it
		}
		case 2:
		{
		gTeam[playerid] = TEAM_BALLA;
		}
		case 3:
		{
		gTeam[playerid] = TEAM_VAGO;
		}
		case 4:
		{
		gTeam[playerid] = TEAM_TRAIDS;
		}
  		case 5:
	    {
		gTeam[playerid] = TEAM_AZTECS;
		}
		case 6:
		{
		gTeam[playerid] = TEAM_CHICKEN;
		}
 		case 7:
		{
		gTeam[playerid] = TEAM_BIKERS;
		}
		case 8:
		{
		gTeam[playerid] = TEAM_DONATORS;
		}
	}
	if(TeamCount[playerid] == 8 )return TeamCount[playerid] = 0;
	TeamCount[playerid]++;
	return 1;
}
Like he has chosen one of the team from it
How i can show the skins of Police team?
OnPlayerRequestSpawn(playerid)

How i can use OnPlayerRequestSpawn for showing classid of team police or other teams which is chosen.

Thanks.
Reply


Messages In This Thread
Need a bit help about Teams - by MBilal - 10.12.2017, 15:02
Re: Need a bit help about Teams - by RowdyrideR - 10.12.2017, 21:22
Re: Need a bit help about Teams - by MBilal - 11.12.2017, 17:39
Re: Need a bit help about Teams - by RogueDrifter - 11.12.2017, 17:45
Re: Need a bit help about Teams - by Xeon™ - 11.12.2017, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)