/kick and /ban - not working
#1

I am checking out zGaming RP script, but when i try /kick and /ban in-game it gives me '/kick : You are not an admin' message (but i have made myself an admin, and other commands are working.)
I have checked the /kick and /ban commands,they seem fine, but i can not find '/kick : You are not an admin' anywhere in the script.
And i am not using any filterscripts.

What could it be?

(here is the /kick command code, in case that it might give you some sort of hint)

pawn Код:
CMD:kick(playerid, params[])
{
    new playerb, string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on admin duty.");
    if(sscanf(params, "us[128]", playerb, params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [playerid] [reason]");
    if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
    if(IsPlayerNPC(playerb)) return SendClientMessage(playerid, COLOR_GREY, "You can't kick NPCs out of the server.");
    if(PlayerInfo[playerid][pAdmin] < PlayerInfo[playerb][pAdmin]) return SendClientMessage(playerid, COLOR_GREY, "Player has a higher admin level than you."); format(string, sizeof(string), "AdmCmd: %s has been kicked by %s, reason: %s", RPN(playerb), RPN(playerid), params);
    format(string, sizeof(string), "AdmCmd: %s has been kicked by %s, reason: %s", RPN(playerb), RPN(playerid), params);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    format(string, sizeof(string), "AdmCmd: %s has been kicked by %s (%s), reason: %s", RPN(playerb), RPN(playerid), RPIP(playerid), params);
    Log("logs/kick.log", string);
    Kick(playerb);
    return 1;
}
Reply


Messages In This Thread
/kick and /ban - not working - by Tagathron - 05.03.2014, 19:41
Re: /kick and /ban - not working - by XK - 05.03.2014, 19:51
Re: /kick and /ban - not working - by Necip - 05.03.2014, 20:02
Re: /kick and /ban - not working - by Tagathron - 05.03.2014, 20:04
Re: /kick and /ban - not working - by XK - 05.03.2014, 20:06
Re: /kick and /ban - not working - by Necip - 05.03.2014, 20:07
Re: /kick and /ban - not working - by Tagathron - 05.03.2014, 20:09
Re: /kick and /ban - not working - by Necip - 05.03.2014, 20:10
Re: /kick and /ban - not working - by XK - 05.03.2014, 20:13
Re: /kick and /ban - not working - by Tagathron - 05.03.2014, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)