GetAll
#1

I make this command >
PHP код:
CMD:getallhg(playerid,params[]) {
    
#pragma unused params
    
if(PlayerInfo[playerid][HGRank] >= 7) {
        
CMDMessageToAdmins(playerid,"GETAllHG");
        new 
Float:x,Float:y,Float:zinterior GetPlayerInterior(playerid);
        
GetPlayerPos(playerid,x,y,z);
           for(new 
0MAX_PLAYERSi++) {
            if(
IsPlayerConnected(i) && (!= playerid) && != ServerInfo[MaxAdminLevel]) {
                
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z); SetPlayerInterior(i,interior);
            }
        }
        new 
string[128]; format(string,sizeof(string),"HG Leader \"%s\" has teleported all HG Members"pName(playerid) );
        return 
MessageToHG(bluestring);
    } else return 
SendClientMessage(playerid,red,"ERROR: You need to be HG Member Rank 7 to use this command");

That command must get all HG Clan Members Only.
But It's Get All Player.
I copying that command from this command >
PHP код:
CMD:getall(playerid,params[]) {
    
#pragma unused params
    
if(PlayerInfo[playerid][Level] >= 5) {
        
CMDMessageToAdmins(playerid,"GETAll");
        new 
Float:x,Float:y,Float:zinterior GetPlayerInterior(playerid);
        
GetPlayerPos(playerid,x,y,z);
           for(new 
0MAX_PLAYERSi++) {
            if(
IsPlayerConnected(i) && (!= playerid) && != ServerInfo[MaxAdminLevel]) {
                
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z); SetPlayerInterior(i,interior);
            }
        }
        new 
string[128]; format(string,sizeof(string),"Administrator \"%s\" has teleported all players"pName(playerid) );
        return 
SendClientMessageToAll(bluestring);
    } else return 
SendClientMessage(playerid,red,"ERROR: You need to be level 5 to use this command");

I don't know how to fix that error.
Please Help Me To Solve This Problem.
Thanks And God Bless You All
Reply


Messages In This Thread
GetAll - by Filbert - 08.06.2016, 09:53
Re: GetAll - by Nin9r - 08.06.2016, 10:23
Re: GetAll - by Stinged - 08.06.2016, 10:41
Re: GetAll - by Filbert - 08.06.2016, 10:48
Re: GetAll - by Filbert - 08.06.2016, 10:52
Re: GetAll - by Stinged - 08.06.2016, 11:03
Re: GetAll - by Sew_Sumi - 08.06.2016, 11:06
Re: GetAll - by Filbert - 08.06.2016, 11:57
Re: GetAll - by Nin9r - 08.06.2016, 12:08
Re: GetAll - by Sew_Sumi - 08.06.2016, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)