SA-MP Forums Archive
luxadmin unban help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: luxadmin unban help (/showthread.php?tid=575197)



luxadmin unban help - Brandon001 - 24.05.2015

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


Re: luxadmin unban help - Brandon001 - 24.05.2015

Unban ip

unban name


Re: luxadmin unban help - Abagail - 24.05.2015

Show the ban command and any functions inside of it.


Re: luxadmin unban help - Brandon001 - 24.05.2015

Код:
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!");
}



Re: luxadmin unban help - Brandon001 - 25.05.2015

Help. pls