03.02.2016, 12:07 
	
	
	
		i have this but when i choose team back again to class selection.
	
	
	
	
Код:
CMD:st(playerid,params[]){
    #pragma unused params
    new Float:x,Float:y,Float:z;
    if(PlayerInfo[playerid][pLogged]==false)return SendClientMessage(playerid,COLOR_RED,"You can not use this command.");
	if(PlayerInfo[playerid][pAdmin]<CmdsOptions[st])return SendClientMessage(playerid,COLOR_RED,"You can not use this command.");
	if(ServerInfo[st]==0)return CommandDisabled(playerid);
    GetPlayerPos(playerid,x,y,z);
	foreach(Player,i){
		if(IsPlayerInRangeOfPoint(i,25.0,x,y,z)){
		    if(gTeam[playerid]!=gTeam[i]){
		    	return SendClientMessage(playerid,COLOR_RED,"You can not use this command.");}}}
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid,1);
    TogglePlayerSpectating(playerid,0);
	return 1;}







