kick,ban not work!!
#1

Hello, why when i do /kick or /ban i get that
Quote:

/kick:you are not an admin

Quote:

/ban:you are not an admin

i have that problem in my two servers (Dm and FreeRoam )
Код:
CMD:ban(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 6)
	{
	    new targetid, tname[MAX_PLAYER_NAME], reason[128];
		new name[MAX_PLAYER_NAME], string[128];
		if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /ban [playerid] [reason]");
		if(targetid != INVALID_PLAYER_ID)
		{
			GetPlayerName(playerid, name, sizeof(name));
			GetPlayerName(targetid, tname, sizeof(tname));
		    format(string, sizeof(string), "ADMIN-BAN: %s, (Reason: %s)", tname, reason);
		    SendClientMessageToAll(BANNEDMESSAGE, string);
		    SaveIn("BanLog",string);
		    Ban(targetid);
		    SendCommandToAdmins(playerid,"/ban");
		}
		else return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid");
	}
	else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 6 to use this command");
	return 1;
}
Код:
CMD:kick(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 2)
	{
	    new targetid, tname[MAX_PLAYER_NAME], reason[128];
		new name[MAX_PLAYER_NAME], string[128];
		if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /kick [playerid] [reason]");
		if(targetid != INVALID_PLAYER_ID)
		{
			GetPlayerName(playerid, name, sizeof(name));
			GetPlayerName(targetid, tname, sizeof(tname));
		    format(string, sizeof(string), "ADMIN-KICK: %s, (Reason: %s)", tname, reason);
		    SendClientMessageToAll(BANNEDMESSAGE, string);
			SaveIn("KickLog",string);
		    Kick(targetid);
		    SendCommandToAdmins(playerid,"/kick");
		}
		else return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid");
	}
	else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 2 to use this command");
	return 1;
}
but it's works when i open that offline (test server)
Reply
#2

Search the part in your script where it says specifically "/ban:you are not an admin" or "you are not an admin". Make sure your server has the newest updated script as well, the one you are using locally.
Reply
#3

it's still and iam not find
Quote:

/ban:you are not an admin

in my pwn
Reply
#4

Are you sure you even set your admin level?
Reply
#5

Make sure there's no other command called /ban & /kick in any Filterscript.
Reply
#6

iam not found any other command kick or ban in filter scripts iam still need help !
Reply
#7

wtf the cmd isn't exist

so HOW THE HELL you want to use it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)