changeteam problem..
#1

everything working perfect.. but when i use /st to change my team..all members forced to the team's color they i choose..
?
any solution ?
PHP Code:
////////////////////////
stock c(playerid)
{
    
gTeam[playerid] = TEAM_USA;
    
SCM(playerid,-1,"{00FF00}You have Chosen Team USA {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock d(playerid)
{
    
gTeam[playerid] = TEAM_EURASIA;
    
SCM(playerid,-1,"{00FF00}You have Chosen Team EURASIA {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock e(playerid)
{
    
gTeam[playerid] = TEAM_ARAB;
    
SCM(playerid,-1,"{00FF00}You have Chosen ARAB {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock k(playerid)
{
    
gTeam[playerid] = TEAM_AUS;
    
SCM(playerid,-1,"{00FF00}You have Chosen Team AUSTRAILLIA {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock g(playerid)
{
    
gTeam[playerid] = TEAM_SOVIET;
    
SCM(playerid,-1,"{00FF00}You have Chosen Team SOVIET {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock o(playerid)
{
    
gTeam[playerid] = TEAM_MERC;
    
SCM(playerid,-1,"{00FF00}You have Chosen Team Mercenary {FF0000}Now Click on any class\n{BABABA} If you wanna change team just click on any other skin.");
    return 
0;
}
stock NotifyAboutClickedSkin(playerid,teamid)
{
    
DeletePVar(playerid"HasChosenTeam");
    
SetPVarInt(playerid"HasChosenTeam",1);
    
gTeam[playerid] = teamid;
    new 
str[250];
    
format(str,sizeof(str),"{00FF00}You have chosen you team {FFFF00}%s {FF0000}Now Click on any class \n{BABABA} If you wanna change team just click on any other skin.",GetTeamName(playerid));
    
format(str,sizeof(str),"{00FF00}You have chosen you team {FFFF00}%s {FF0000}Now Click on any class \n{BABABA} If you wanna change team just click on any other skin.",GetTeamName(playerid));
    
SCM(playerid,-1,str);
    return 
1;
}
public 
OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == PlayerText:INVALID_TEXT_DRAW)return false;
    if(
playertextid == ChooseClass[playerid][11])return NotifyAboutClickedSkin(playerid,TEAM_USA);//you can change it as you want
    
else if(playertextid == ChooseClass[playerid][12])return NotifyAboutClickedSkin(playerid,TEAM_EURASIA);//you can change it as you want
    
else if(playertextid == ChooseClass[playerid][13])return NotifyAboutClickedSkin(playerid,TEAM_ARAB);//you can change it as you want
    
else if(playertextid == ChooseClass[playerid][14])return NotifyAboutClickedSkin(playerid,TEAM_AUS);//you can change it as you want
    
else if(playertextid == ChooseClass[playerid][15])return NotifyAboutClickedSkin(playerid,TEAM_SOVIET);//you can change it as you want
    
else if(playertextid == ChooseClass[playerid][16])return NotifyAboutClickedSkin(playerid,TEAM_MERC);//you can change it as you want
    
else if(GetPVarInt(playerid"HasChosenTeam")!=1)return    SCM(playerid,-1,"{FF0000}You will have to Choose your Team first.");
    {
        if(
playertextid == ChooseClass[playerid][1])return AssignPlayerClass(playerid,Assault);
        else if(
playertextid == ChooseClass[playerid][0])return AssignPlayerClass(playerid,DONOR);
        else if(
playertextid == ChooseClass[playerid][2])return AssignPlayerClass(playerid,SNIPER);
          else if(
playertextid == ChooseClass[playerid][3])return AssignPlayerClass(playerid,PYRO);
        else if(
playertextid == ChooseClass[playerid][4])return AssignPlayerClass(playerid,ENGINEER);
        else if(
playertextid == ChooseClass[playerid][5])return AssignPlayerClass(playerid,SP);
        else if(
playertextid == ChooseClass[playerid][6])return AssignPlayerClass(playerid,SCOUT);
        else if(
playertextid == ChooseClass[playerid][7])return AssignPlayerClass(playerid,JET);
        else if(
playertextid == ChooseClass[playerid][8])return AssignPlayerClass(playerid,PILOT);
        else if(
playertextid == ChooseClass[playerid][9])return AssignPlayerClass(playerid,AG);
    }
    return 
0;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == Text:INVALID_TEXT_DRAW)
    {
        
DeletePVar(playerid"HasChosenTeam");
        return 
1;
    }
    return 
1;
}
stock LoadSelectionMenuTxDs(playerid)
{
    
SelectionMenu[playerid][0] = CreatePlayerTextDraw(playerid350.000000118.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][0], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][0], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][0], 0.5000002.400000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][0], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][0], 102);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][0], 0.000000293.000000);
    
SelectionMenu[playerid][1] = CreatePlayerTextDraw(playerid350.000000145.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][1], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][1], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][1], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][1], 0.50000028.800001);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][1], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][1], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][1], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][1], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][1], 68);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][1], 0.000000293.000000);
    
SelectionMenu[playerid][2] = CreatePlayerTextDraw(playerid350.000000410.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][2], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][2], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][2], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][2], 0.5000002.400000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][2], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][2], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][2], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][2], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][2], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][2], 7798886);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][2], 0.000000293.000000);
    
SelectionMenu[playerid][3] = CreatePlayerTextDraw(playerid350.000000116.000000#ServerName);
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][3], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][3], -205);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][3], 3);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][3], 0.5000002.299998);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][3], 255);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][3], 1);
    
SelectionMenu[playerid][4] = CreatePlayerTextDraw(playerid350.000000409.000000#ServerWebsite);
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][4], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][4], -16777182);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][4], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][4], 0.4300002.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][4], 255);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][4], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][4], 1);
    
SelectionMenu[playerid][5] = CreatePlayerTextDraw(playerid346.000000136.000000"-");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][5], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][5], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][5], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][5], 23.8099631.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][5], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][5], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][5], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][5], 1);
    
SelectionMenu[playerid][6] = CreatePlayerTextDraw(playerid346.000000401.000000"-");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][6], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][6], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][6], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][6], 23.8099631.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][6], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][6], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][6], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][6], 1);
    
SelectionMenu[playerid][7] = CreatePlayerTextDraw(playerid210.000000147.000000"                                     Directions~n~~r~~h~1. ~y~~h~Select your Team~w~ (Click on your desired skin)~n~~r~~h~2. ~y~~h~Choose your Class ~w~(Click on any of the list)");
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][7], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][7], 2);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][7], 0.2399991.299999);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][7], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][7], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][7], 1);
    
SelectionMenu[playerid][8] = CreatePlayerTextDraw(playerid350.000000202.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][8], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][8], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][8], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][8], 0.500000, -0.099999);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][8], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][8], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][8], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][8], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][8], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][8], 572662527);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][8], 1.000000293.000000);
    
SelectionMenu[playerid][9] = CreatePlayerTextDraw(playerid406.000000206.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][9], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][9], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][9], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][9], 0.50000021.900007);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][9], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][9], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][9], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][9], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][9], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][9], 572662527);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][9], 1.0000000.000000);
    
SelectionMenu[playerid][10] = CreatePlayerTextDraw(playerid248.000000206.000000"Team(Choose A Team)                       Choose a Class");
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][10], 17);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][10], 2);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][10], 0.2099991.200000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][10], -16776961);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][10], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][10], 1);
    
SelectionMenu[playerid][11] = CreatePlayerTextDraw(playerid350.000000223.000000"_");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][11], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][11], 255);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][11], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][11], 0.500000, -0.099999);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][11], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][11], 0);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][11], 1);
    
PlayerTextDrawSetShadow(playeridSelectionMenu[playerid][11], 1);
    
PlayerTextDrawUseBox(playeridSelectionMenu[playerid][11], 1);
    
PlayerTextDrawBoxColor(playeridSelectionMenu[playerid][11], 572662527);
    
PlayerTextDrawTextSize(playeridSelectionMenu[playerid][11], 1.000000293.000000);
    
SelectionMenu[playerid][12] = CreatePlayerTextDraw(playerid247.000000300.000000,"~b~USA");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][12], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][12], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][12], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][12], 0.1599981.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][12], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][12], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][12], 1);
    
SelectionMenu[playerid][13] = CreatePlayerTextDraw(playerid306.000000300.000000"~g~EURASIA");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][13], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][13], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][13], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][13], 0.1599971.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][13], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][13], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][13], 1);
    
SelectionMenu[playerid][14] = CreatePlayerTextDraw(playerid365.000000300.000000"~y~ARAB");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][14], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][14], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][14], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][14], 0.1599971.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][14], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][14], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][14], 1);
    
SelectionMenu[playerid][15] = CreatePlayerTextDraw(playerid245.000000389.000000"~p~AUSTRAILIA");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][15], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][15], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][15], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][15], 0.1599971.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][15], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][15], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][15], 1);
    
SelectionMenu[playerid][16] = CreatePlayerTextDraw(playerid306.000000389.000000"~r~SOVIET");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][16], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][16], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][16], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][16], 0.1599971.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][16], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][16], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][16], 1);
    
SelectionMenu[playerid][17] = CreatePlayerTextDraw(playerid367.000000389.000000"~w~MERCENARY");
    
PlayerTextDrawAlignment(playeridSelectionMenu[playerid][17], 2);
    
PlayerTextDrawBackgroundColor(playeridSelectionMenu[playerid][17], 34);
    
PlayerTextDrawFont(playeridSelectionMenu[playerid][17], 1);
    
PlayerTextDrawLetterSize(playeridSelectionMenu[playerid][17], 0.1599971.000000);
    
PlayerTextDrawColor(playeridSelectionMenu[playerid][17], -1);
    
PlayerTextDrawSetOutline(playeridSelectionMenu[playerid][17], 1);
    
PlayerTextDrawSetProportional(playeridSelectionMenu[playerid][17], 1);
    
ChooseClass[playerid][1] = CreatePlayerTextDraw(playerid451.000000227.000000"Assault");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][1], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][1], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][1], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][1], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][1], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][1], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][1], 1);
    
ChooseClass[playerid][2] = CreatePlayerTextDraw(playerid451.000000242.000000"SNIPER");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][2], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][2], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][2], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][2], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][2], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][2], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][2], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][2], 1);
    
ChooseClass[playerid][3] = CreatePlayerTextDraw(playerid451.000000257.000000"PYROMAN");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][3], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][3], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][3], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][3], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][3], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][3], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][3], 1);
    
ChooseClass[playerid][4] = CreatePlayerTextDraw(playerid451.000000271.000000"ENGINEER");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][4], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][4], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][4], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][4], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][4], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][4], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][4], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][4], 1);
    
ChooseClass[playerid][5] = CreatePlayerTextDraw(playerid451.000000286.000000"SUPPORT");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][5], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][5], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][5], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][5], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][5], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][5], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][5], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][5], 1);
    
ChooseClass[playerid][6] = CreatePlayerTextDraw(playerid451.000000301.000000"SCOUT");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][6], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][6], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][6], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][6], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][6], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][6], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][6], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][6], 1);
    
ChooseClass[playerid][7] = CreatePlayerTextDraw(playerid451.000000315.000000"JeTTROOPER");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][7], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][7], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][7], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][7], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][7], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][7], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][7], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][7], 1);
    
ChooseClass[playerid][8] = CreatePlayerTextDraw(playerid451.000000329.000000"PILOT");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][8], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][8], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][8], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][8], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][8], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][8], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][8], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][8], 1);
    
ChooseClass[playerid][9] = CreatePlayerTextDraw(playerid451.000000342.000000"SPY");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][9], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][9], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][9], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][9], 0.2099971.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][9], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][9], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][9], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][9], 1);
    
ChooseClass[playerid][0] = CreatePlayerTextDraw(playerid451.000000356.000000"DONORS CLASS");
    
PlayerTextDrawAlignment(playeridChooseClass[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][0], 34);
    
PlayerTextDrawFont(playeridChooseClass[playerid][0], 2);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][0], 0.2099961.200000);
    
PlayerTextDrawColor(playeridChooseClass[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][0], 1);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][0], 1);
    
ChooseClass[playerid][11] = CreatePlayerTextDraw(playerid217.000000228.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][11], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][11], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][11], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][11], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][11], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][11], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][11], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][11], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][11], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][11], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][11], 287);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][11], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][11], 1);
    
ChooseClass[playerid][12] = CreatePlayerTextDraw(playerid275.000000228.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][12], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][12], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][12], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][12], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][12], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][12], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][12], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][12], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][12], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][12], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][12], 73);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][12], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][12], 1);
    
ChooseClass[playerid][13] = CreatePlayerTextDraw(playerid334.000000228.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][13], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][13], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][13], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][13], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][13], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][13], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][13], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][13], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][13], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][13], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][13], 179);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][13], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][13], 1);
    
ChooseClass[playerid][14] = CreatePlayerTextDraw(playerid215.000000316.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][14], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][14], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][14], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][14], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][14], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][14], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][14], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][14], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][14], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][14], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][14], 206);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][14], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][14], 1);
    
ChooseClass[playerid][15] = CreatePlayerTextDraw(playerid275.000000316.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][15], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][15], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][15], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][15], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][15], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][15], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][15], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][15], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][15], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][15], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][15], 285);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][15], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][15], 1);
    
ChooseClass[playerid][16] = CreatePlayerTextDraw(playerid337.000000316.000000"ld_beat:up");
    
PlayerTextDrawBackgroundColor(playeridChooseClass[playerid][16], 0);
    
PlayerTextDrawFont(playeridChooseClass[playerid][16], 5);
    
PlayerTextDrawLetterSize(playeridChooseClass[playerid][16], 0.5000001.399999);
    
PlayerTextDrawColor(playeridChooseClass[playerid][16], -1);
    
PlayerTextDrawSetOutline(playeridChooseClass[playerid][16], 0);
    
PlayerTextDrawSetProportional(playeridChooseClass[playerid][16], 1);
    
PlayerTextDrawSetShadow(playeridChooseClass[playerid][16], 1);
    
PlayerTextDrawUseBox(playeridChooseClass[playerid][16], 1);
    
PlayerTextDrawBoxColor(playeridChooseClass[playerid][16], -256);
    
PlayerTextDrawTextSize(playeridChooseClass[playerid][16], 60.00000073.000000);
    
PlayerTextDrawSetPreviewModel(playeridChooseClass[playerid][16], 217);
    
PlayerTextDrawSetPreviewRot(playeridChooseClass[playerid][16], 0.0000000.000000, -30.0000001.000000);
    
PlayerTextDrawSetSelectable(playeridChooseClass[playerid][16], 1);
    return 
1;

Reply
#2

show us your /st command.
Reply
#3

problem isn't here..
PHP Code:
CMD:st(playeridparams[])
{
    
SetPlayerHealth(playerid0.0);
    
ForceClassSelection(playerid);
    
SendClientMessage(playeridyellow,"*You have been taken to team selection.");
    return 
1;

Reply
#4

Show us the part where you use stocks
Reply
#5

Quote:

ForceClassSelection(playerid);

https://sampwiki.blast.hk/wiki/ForceClassSelection

you need to set the player spectating him/her -self and then let them choose the team and class, and in the code you provided in the first reply, has nothing to do with all of the players, there isn't any looping.
Reply
#6

Quote:
Originally Posted by ALiScripter
View Post
https://sampwiki.blast.hk/wiki/ForceClassSelection

you need to set the player spectating him/her -self and then let them choose the team and class, and in the code you provided in the first reply, has nothing to do with all of the players, there isn't any looping.
No you are wrong , check my first reply(everything working fine)
PHP Code:
stock ShowSelectionMenu(playerid)
{
    
TogglePlayerSpectating(playerid,1);
    for(new 
x=018 x++)PlayerTextDrawShow(playerid,SelectionMenu[playerid][x]);
    
ClassShow(playerid);
}
stock ClassShow(playerid)
{
    
SelectTextDraw(playerid0xFFFFFFFF);
    for(new 
x=017 x++)PlayerTextDrawShow(playerid,ChooseClass[playerid][x]);
}
stock HideSelectionMenu(playerid)
{
    for(new 
x=018 x++)PlayerTextDrawHide(playerid,SelectionMenu[playerid][x]);
    
ClassHide(playerid);
}
stock DestroySelectionMenu(playerid)
{
    for(new 
x=018 x++)PlayerTextDrawDestroy(playerid,SelectionMenu[playerid][x]);
    
ClassDestroy(playerid);
}
stock ClassHide(playerid)
{
    
CancelSelectTextDraw(playerid);
    for(new 
x=017 x++)PlayerTextDrawHide(playerid,ChooseClass[playerid][x]);
}
stock ClassDestroy(playerid)
{
    
CancelSelectTextDraw(playerid);
    for(new 
x=017 x++)PlayerTextDrawDestroy(playerid,ChooseClass[playerid][x]);

when i connect to server..and choosing class everything work fine, but when i use /st, all players color changed
Reply
#7

Quote:
Originally Posted by Shinja
View Post
Show us the part where you use stocks
c,d,k... ones
Reply
#8

Quote:
Originally Posted by Shinja
View Post
c,d,k... ones
The problems on this part.. and check my fast reply..
any1 know..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)