Reconnect someone?
#3

Well, you can KICK a person! If you use ZCMD:

PHP код:
   CMD:kick(playeridparams[])
    {
        if(
PlayerInfo[playerid][pAdmin] >= 1) {
            new 
PID;
            if(
sscanf(params"u"PID)) return SendClientMessage(playeridCOLOR_GREY"USAGE: /kick [playerid] [reason]");
            if(!
IsPlayerConnected(PID))
                return 
SendClientMessage(playeridCOLOR_GREY"Player is not connected!");
            
Kick(PID);
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY"You are not an administrator, so you can't use this command!");
        }
        return 
1;
    } 
You can easily convert it into strcmp if you need!
Reply


Messages In This Thread
got it - by swieberdevos - 12.08.2011, 15:13
Re: Reconnect someone? - by Twizted - 12.08.2011, 15:16
AW: Reconnect someone? - by samtey - 12.08.2011, 15:23
Re: Reconnect someone? - by swieberdevos - 12.08.2011, 15:34
Re: Reconnect someone? - by Twizted - 12.08.2011, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)