luxadmin unban help
#1

Hi, 1 unban would be needed a command dissolves the title of luxadminhoz, which is the respective ip, and his name.
Reply
#2

Unban ip

unban name
Reply
#3

Show the ban command and any functions inside of it.
Reply
#4

Код:
dcmd_ban(playerid,params[])
{
	if(AccInfo[playerid][LoggedIn] == 1)
	{
		if(AccInfo[playerid][Level] >= 3)
		{
			new Index;
		    new tmp[256];  tmp  = strtok(params,Index);
			new tmp2[256]; tmp2 = strtok(params,Index);
			new playername[MAX_PLAYER_NAME];
		 	new adminname [MAX_PLAYER_NAME];
            new year,month,day;
	        getdate(year, month, day);
	        new hour,minute,second;
	        gettime(hour,minute,second);

		    if(!strlen(params)) return
			SendClientMessage(playerid, red, "Hasznбlat: /ban [Jбtйkos ID] [Indok]") &&
			SendClientMessage(playerid, orange, "Funkciу: Bannolni Tudod a Szerverről a Jбtйkosokat");
			if(!strlen(tmp2))
			return SendClientMessage(playerid, red, "Hiba: Nem Adtad Meg Hogy Miйrt Akarod Ki Bannolni!");
			new player1;
	    	new string[128];
			player1 = strval(tmp);

		 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid && (AccInfo[player1][Level] != ServerInfo[MaxAdminLevel]))
			{
		     	GetPlayerName(player1, playername, sizeof(playername));
				GetPlayerName(playerid, adminname, sizeof(adminname));
				format(string,sizeof(string),"{FF0000}[ADMIN]:{00FFFF} %s{FFFF00} ki lett tiltva {00FFFF}%s {FFFF00}бltal! [Dбtum: %d/%d/%d] [Idő: %d:%d]",playername,adminname,day,month,year,hour,minute);
			    SendClientMessageToAll(COLOR_PURPLE,string);
				format(string,sizeof(string),"{FF0000}[ADMIN]: {00FF00}Indok: {00FFFF}%s",params[2]);
				SendClientMessageToAll(COLOR_PURPLE,string);
				SetTimerEx("ban",1000,0,"d",playername);
				SaveIn("BanLog",string);
				print(string);
				if(udb_Exists(PlayerName2(player1)) && AccInfo[player1][LoggedIn] == 1)
				dUserSetINT(PlayerName2(player1)).("Banned",1);
				format(string,sizeof(string),"%s kitiltott a szerverről. | Indok: %s",playername,params[2]);
				return BanEx(player1, string);
			}
			else return SendClientMessage(playerid, red, "Hiba: Jбtйkos Nincs Csatlakozva Vagy Magad akartad Vagy a Legnagyobb Szintű Admint!");
		}
		else return ErrorMessages(playerid, 1);
	}
	else return SendClientMessage(playerid,red,"Hiba: Ahoz Hogy a Parancsot Hasznбlni Tudd Jelentkezz Be!");
}
Reply
#5

Help. pls
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)