10.12.2017, 15:02
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.
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.
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;
}
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.



