force class selection
#1

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;}
Reply


Messages In This Thread
force class selection - by GeneralAref - 03.02.2016, 12:07
Respuesta: force class selection - by DkrX - 03.02.2016, 16:27
Re: force class selection - by GeneralAref - 03.02.2016, 16:41
Re: force class selection - by Lumanov - 03.02.2016, 16:44
Re: force class selection - by GeneralAref - 03.02.2016, 16:51
Re: force class selection - by povargek - 03.02.2016, 16:57
Re: force class selection - by Lumanov - 03.02.2016, 17:00
Re: force class selection - by Sjn - 03.02.2016, 17:01
Re: force class selection - by Rufio - 03.02.2016, 17:03
Re: force class selection - by GeneralAref - 03.02.2016, 17:27

Forum Jump:


Users browsing this thread: 4 Guest(s)