SA-MP Forums Archive
Lux admin help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lux admin help (/showthread.php?tid=213202)



Lux admin help - Awesome@Man - 18.01.2011

Hello, can anyone told me how to creat vip kick for lux admin system so i mean
dcmd_vkick
but i fail any answers plz?


Re: Lux admin help - KappaCro - 18.01.2011

Hey Boom.
He mean, we want create a cmd for vip players in LuxAdmin. Cmd is /vkick. That cmd is for vip level 1.
so vip use /vkick [id] [reason] and player get kicked.


Re: Lux admin help - Awesome@Man - 18.01.2011

Yeah Thanks


Re: Lux admin help - alpha500delta - 18.01.2011

Check the LuxAdmin topic... it says all


Re: Lux admin help - Awesome@Man - 19.01.2011

I check but only cmd VIPList ! , i need help


Re: Lux admin help - SampStunta - 19.01.2011

If you want this command to be for all VIP members, then you want to use this:
Kick(playerid); (I think)


Re: Lux admin help - Lorenc_ - 19.01.2011

lmfao, you need to add parameters, else that will kick the player who uses it.

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

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

    else if(sscanf(params, "us", pID, reason)) SendUsage(playerid, "/kick [playerid] [reason]");
    else if(pID == INVALID_PLAYER_ID) return SendError(playerid, "Invalid playerid.");
    else if(pID == playerid) return SendError(playerid, "You cant kick yourself.");
    else if(GetPVarInt(pID, "Admin") > 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;
}
Thats my kick command, change it around see what you can do with it.