How To Make Unban Command To Unban Offline Player!
#1

Hello, I'm using YSI/Y_ini Files Like (%s.ini) With Directry AAdmin/Users/%.ini

Please Give Me A Unban Offline Player Command!
My Ban Command Is :-
Quote:

dcmd_ban(playerid, params[])
{
new TargetID,Reason[64];
if(pInfo[playerid][Adminlevel] < 3) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
if(sscanf(params, "us", TargetID, Reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ban [id] [Reason]");
if(spawned[playerid] == 0) return SCM(playerid, COLOR_RED,"You Cannot Use This Command While Dead");
if(pInfo[TargetID][Adminlevel] > 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command On An Admin.");
if(TargetID == INVALID_PLAYER_ID || !IsPlayerConnected(TargetID )) return SendClientMessage(playerid, COLOR_RED, "* Player Is Not Connected.");
else
{


pInfo[TargetID][Banned] =1;
new str[128],str1[128];
new targetname[MAX_PLAYER_NAME];
GetPlayerName(TargetID,targetname,24);
format(str,sizeof(str),"* %s (%d) Has Been Banned By An Admin. Reason: %s", targetname, TargetID, Reason);
SendClientMessageToAll(COLOR_HOTPINK, str);
format(str1,sizeof(str1),"* BANNED: %s (%d) (ADMIN BAN) Admin Ban", targetname, TargetID);
SendClientMessageToAll(COLOR_HOTPINK, str1);
GameTextForPlayer(TargetID,"~r~Removed ~w~From The Server",3000,3);
SetTimerEx("ban", 1000, false, "i", TargetID);
print(str1);
//KickWithMessage(TargetID, "* You Have Been Removed From The Server.");


}
return 1;

Please Please Please Make a Unban Command To Unban Offline Player For Me!
Reply


Messages In This Thread
How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:05
Re: How To Make Unban Command To Unban Offline Player! - by luis_mendoza - 10.05.2014, 08:07
Re: How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:15
Re: How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)