[HELP]In This Command
#2

PHP код:
CMD:kickall(playerid,params[])
{
    if (
adlvl[playerid] < 6) return 0;
    new 
string[144], namr[MAX_PLAYER_NAME];
    
GetPlayerName(playerid24namr);
    
format(string,sizeof(string),""COLOR_BLUE"{FF0000}[SERVER]:{FFFFFF} Admin %s (%d) has kicked all players except admins",namr,playerid);
    
SendClientMessageToAll(-1,string);
    for(new 
0MAX_PLAYERSi++)
        if (
adlvl[playerid] < 5)
            
Kick(i);
    return 
1;

If there's still errors, tell me the exact line.
Reply


Messages In This Thread
[HELP]In This Command - by Immortal99 - 03.08.2016, 16:42
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:46
Re: [HELP]In This Command - by AndySedeyn - 03.08.2016, 16:47
Re: [HELP]In This Command - by WhiteGhost - 03.08.2016, 16:49
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:50
Re: [HELP]In This Command - by JustMe.77 - 03.08.2016, 16:51
Re: [HELP]In This Command - by K0P - 03.08.2016, 16:52
Re: [HELP]In This Command - by Konstantinos - 03.08.2016, 17:15

Forum Jump:


Users browsing this thread: 3 Guest(s)