zcmd kick command
#8

pawn Код:
COMMAND:kick(playerid, params[])
{
    new pid;
    if(PlayerInfo[playerid][pAdminlevel] >= 1)
    {
        if(sscanf(params, "us[128]", pid, params[2])) return SendClientMessage(playerid,  0xFFFFFFFF, "/kick [playerid/name] [reason]");
        if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, 0xFFFFFFFF, "This player is not connected");
        new adminname[MAX_PLAYER_NAME], paramname[MAX_PLAYER_NAME], string[180];
        GetPlayerName(pid, paramname, sizeof(paramname));
        GetPlayerName(playerid, adminname, sizeof(adminname));
        format(string, sizeof(string), "%s has been kicked by %s for: %s", paramname, adminname, params[2]);
        SendClientMessageToAll(AdminColor, string);
        Kick(pid);
    } else if(PlayerInfo[playerid][pAdminLevel] == 0) return SendClientMessage(playerid, 0xAAAAAAAA, "You are not admin or the required level.");
    return 1;
}
Try this

EDIT: nvm
Reply


Messages In This Thread
zcmd kick command - by Omecken - 23.02.2011, 10:16
Re: zcmd kick command - by XFlawless - 23.02.2011, 10:20
Re: zcmd kick command - by Omecken - 23.02.2011, 10:23
Re: zcmd kick command - by Gh0sT_ - 23.02.2011, 10:29
Re: zcmd kick command - by Omecken - 23.02.2011, 10:38
Re: zcmd kick command - by DevilG - 23.02.2011, 10:53
Re: zcmd kick command - by Omecken - 23.02.2011, 10:55
Re: zcmd kick command - by xir - 23.02.2011, 11:01
Re: zcmd kick command - by HyperZ - 23.02.2011, 12:47

Forum Jump:


Users browsing this thread: 8 Guest(s)