<<<<<<<<please help >>>>>>>>>
#9

I suggest you have two commands, /vipkick for VIP's, and /kick for admins

Код:
dcmd_vipkick(playerid, params[])
{
    new
        pID,
        reason[24],
        string[128]
        ;

#if !defined ADMIN_REJECT_MSG
    if(GetPVarInt(playerid, "VIP") < 3) return 0;
#else
    if(GetPVarInt(playerid, "VIP") < 3) return SendError(playerid, ADMIN_REJECT_MSG);
#endif

    else if(sscanf(params, "us", pID, reason)) SendUsage(playerid, "/vipkick [playerid] [reason]");
    else if(pID == INVALID_PLAYER_ID) return SendError(playerid, "Invalid playerid.");
                                                  //KICK HIM SLEP :D << :P KICK HIM NAO!
    else if(pID == playerid) return SendError(playerid, "You cant kick yourself.");
    else if(GetPVarInt(pID, "VIP") > 1) return SendError(playerid, "You cannot use this command on admins");
    else {
        format(string, sizeof(string), "%s has been kicked by %s. (REASON: %s)", ReturnPlayerName(pID), ReturnPlayerName(playerid), reason);
        SendClientMessageToAll(COLOR_YELLOW, string);
        Kick(pID);
    }
    return 1;
}


//////////////////////////////////////////////////////////////////////////////////
Onto OnPlayerCommandText add this:

dcmd(vipkick, 7, cmdtext);

Hope I helped
Reply


Messages In This Thread
<<<<<<<<please help >>>>>>>>> - by MA_proking - 02.07.2011, 03:36
Re: <<<<<<<<please help >>>>>>>>> - by SmileyForCheat - 02.07.2011, 03:43
Re: <<<<<<<<please help >>>>>>>>> - by Deskoft - 02.07.2011, 03:54
Re: <<<<<<<<please help >>>>>>>>> - by MA_proking - 02.07.2011, 04:24
Re: <<<<<<<<please help >>>>>>>>> - by SmileyForCheat - 02.07.2011, 06:11
Re: <<<<<<<<please help >>>>>>>>> - by MA_proking - 02.07.2011, 06:58
Re: <<<<<<<<please help >>>>>>>>> - by alpha500delta - 02.07.2011, 08:53
Re: <<<<<<<<please help >>>>>>>>> - by Deskoft - 02.07.2011, 10:23
Re: <<<<<<<<please help >>>>>>>>> - by Odyssey - 02.07.2011, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)