Reason
#2

Try this.

PHP код:
CMD:explodeall(playeridparams[]) 

    if(
PlayerInfo[playerid][pAdmin] >= && 5
    { 
        new 
string[128], Float:xFloat:yFloat:z,explodeall[128]; 
        if(
sscanf(params"uii"explodeall)) return SendClientMessage(playeridCOLOR_YELLOW"USAGE: /explodeall [Reason]"); 
        if(
PlayerInfo[playerid][pAdmin] < && 2) return SendClientMessage(playerid, -1"{FF0000}Error: {FFFFFF}Only Admin +level 3 can use this command."); 
        { 
            
GetPlayerPos(playeridx,y,z); 
            
CreateExplosion(x,y,z,12,10.0); 
            
format(string,sizeof(string), "{A82FED}[All Exploded]: {FFFFFF}All players has exploded by An Admin {A82FED}%s(%d){FFFFFF}! Reason: {A82FED}%s{FFFFFF}.",PlayerName(playerid), playeridparams); 
            
SendClientMessageToAll(-1string); //Output the string to the client. 

            
format(stringsizeof(string), "An Admin %s(%d) has Exploded All players Reason: %s. (/explodeall)!"PlayerName(playerid), playeridparams); 
             
SendToAdmins(COLOR_GREY,string); 
        } 
    } 
    else 
        
SendClientMessage(playerid, -1"{FF0000}Error: {FFFFFF}Wrong command!! {FF0000}Check availables commands from here `{FFFFFF}/cmds{FF0000}`."); 
    return 
1

You just forget to type "Return"!
Reply


Messages In This Thread
Reason - by Man43 - 05.08.2018, 20:42
Re: Reason - by RedRex - 05.08.2018, 20:44
Re: Reason - by DBZdabIt3Bro7 - 05.08.2018, 20:48
Re: Reason - by RedRex - 05.08.2018, 22:55
Re: Reason - by DBZdabIt3Bro7 - 05.08.2018, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)