Help with kick command
#2

PHP код:
CMD:kip(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] == 6)
    {
        new 
ip[32], inputip[32];
        if(
sscanf(params"s[32]"inputip)) return SendClientMessage(playeridWHITE"USAGE:/kip [IP]");
        for(new 
p=0p<MAX_PLAYERSp++)
        {
            if(
IsPlayerConnected(p))
            {
                
GetPlayerIp(pipsizeof(ip));
                if(
strcmp(inputipiptrue))
                {
                    
Kick(p);
                }
            }
        }
        new 
str[128], adname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridadnamesizeof(adname));
        
format(strsizeof(str), "ADMIN %s kick all players with IP: %s"adnameinputip);
        
SendClientMessageToAll(REDstr);
        
    }
    else return 
SendClientMessage(playeridRED"You are not a admin!");
    return 
1;

Reply


Messages In This Thread
Help with kick command - by Stoyanov - 02.03.2015, 10:11
Re: Help with kick command - by ATGOggy - 02.03.2015, 10:23
Re: Help with kick command - by JeaSon - 02.03.2015, 10:28
Re: Help with kick command - by ATGOggy - 02.03.2015, 10:29
Re: Help with kick command - by CalvinC - 02.03.2015, 10:35
Re: Help with kick command - by Stoyanov - 02.03.2015, 10:39
Re: Help with kick command - by Stoyanov - 02.03.2015, 10:48
Re: Help with kick command - by ATGOggy - 02.03.2015, 10:59
Re: Help with kick command - by CalvinC - 02.03.2015, 11:00
Re: Help with kick command - by Stoyanov - 02.03.2015, 11:19

Forum Jump:


Users browsing this thread: 2 Guest(s)