Help with zcmd
#2

What is your admin system ? I can try help.
Try this :
pawn Код:
CMD:kick(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
            new kicked, reason[50];
            if(sscanf(params, "us[50]", kicked, reason)) return SendClientMessage(playerid, 0x00FF00AA, "USAGE: /kick [ID] [Reason]");
            if(kicked == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0x00FF00AA, "Invalid ID");
            new message[128];
            format(message, sizeof(message), "AdmCMD: %s was kicked by %s, reason: %s", ReturnPlayerName(kicked), ReturnPlayerName(playerid), reason);
            SendClientMessageToAll(0x00FF00AA, message);
            Kick(kicked);
    }
    return 1;
}
Reply


Messages In This Thread
Help with zcmd - by Tigerkiller - 09.08.2011, 09:22
Re: Help with zcmd - by Darnell - 09.08.2011, 09:29
AW: Help with zcmd - by Tigerkiller - 09.08.2011, 09:38
Re: Help with zcmd - by emokidx - 09.08.2011, 09:39
Re: Help with zcmd - by Darnell - 09.08.2011, 09:50
Re: Help with zcmd - by Markx - 09.08.2011, 09:51
Re: Help with zcmd - by Jack_Leslie - 09.08.2011, 09:51
Re: Help with zcmd - by Darnell - 09.08.2011, 09:53

Forum Jump:


Users browsing this thread: