Requesting Help - Hassan Shah
#1

I'm using the code for banning players below.

Код:
dcmd_adban(playerid,params[])
{
	new string[128];
	new ID;
	new cmdreason[100];
	if(sscanf(params,"us[100]",ID,cmdreason))
	{
	    SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adban (Player Name/ID) (Reason)");
	    return 1;
	}
	if(!IsPlayerConnected(ID))
	{
	    format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot ban them.",ID);
	    SendClientMessage(playerid,COLOR_ERROR,string);
	    return 1;
	}
	Banning[ID] =1;
	format(string,sizeof(string),"[ADMIN] Administrator has banned %s(%d) from the server. Reason: %s.",PlayerName(ID),ID,cmdreason);
	SendClientMessageToAll(COLOR_RED,string);

	format(string,sizeof(string),"9[ADMIN] Administrator has banned %s(%d) from the server. Reason: %s.",PlayerName(ID),ID,cmdreason);
    IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
    if(PLAYERLIST_authed[ID] == 1)
    {
    	dUserSetINT(PlayerName(ID)).("Nameban",1);
	}
	SetTimer("BanPlayer",700,0);
	return 1;
}
I want this
Код:
dcmd_adunban
to unban the players from the server, Can anyone help me? I cannot make it myself.
Reply
#2

Set dUserSetINT(PlayerName(ID)).("Nameban",1); to dUserSetINT(PlayerName(ID)).("Nameban",0);
Reply
#3

What about the other stuff that says Banned??
Reply
#4

That's pretty much it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)