Unban command
#1

i need unban command here is my /ban please help


Quote:

CMD:ban(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 2)
{
if(IsPlayerConnected(playerid))
{
new targetid,reason[105],string[256];
if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /ban [playerid] [reason]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid), Play erName(targetid),reason);
SendClientMessageToAll(-1,string);

BanPlayer(targetid,reason,PlayerName(playerid));
}
}
else {
SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
}
return 1;
}

Reply
#2

lol man this command working i just give you this command cause i wonna to you create me /unban command i realy need it cause some hacers ban my players and i have to unban him please create me
Reply
#3

use an Admin filterscript like LuxAdmin, it's easier
Reply
#4

can you create me UNBAN command please ?
Reply
#5

man im not ignoring i just dont know create /unban command i m just asking you to create me that command please man
Reply
#6

Quote:
Originally Posted by Destroyed
Посмотреть сообщение
man im not ignoring i just dont know create /unban command i m just asking you to create me that command please man
Bro,if you read what he says,You have given insufficient information on the Function BanPlayer So he can't do it without you showing him that function coding.

So post that code so we can help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)