[Ajuda] Como retirar o BAN quando loga na RCON?
#3

Quote:
Originally Posted by DrTHE
View Post
Procure a callback OnRconLoginAttempt e remova o cуdigo presente.
Aqui tem o seguinte codigo:

PHP Code:
public OnRconLoginAttempt(ip[], password[], success){if(success){new pip[16];for(new i=0i<MAX_PLAYERSi++){GetPlayerIp(ipipsizeof(pip));if(!strcmp(ippiptrue)){ClearChatbox(i100);SendClientMessage(iCOLOR_YELLOW"Vocк foi banido por tentar logar na RCON!");SendClientMessage(iCOLOR_YELLOW"Nгo terб direito a revisгo de ban!");
getdate(yearmonthday);gettime(hour,minute);format(gstring128"%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),daymonthyear,hourminute);fdplog(gstring);SBan(i"Admin Rcon""Homem_Aranha");break;}}}return true;}
stock IPlog(playerid){new PlayerIP[17];GetPlayerIp(playerid,PlayerIPsizeof(PlayerIP));getdate(yearmonthday);gettime(hour,minute);format(gstringsizeof(gstring), "[%d/%d/%d - %d:%d] IP: %s - %s[%d]\n"daymonthyearhourminutePlayerIPPlayerName(playerid), playerid);new File:hFile;hFile fopen("Logs/IP.log"io_append);fwrite(hFilegstring);fclose(hFile);}
stock AdminLog(string[]){new File:hFile;hFile fopen("Logs/AdmTeste.log"io_append);fwrite(hFilestring);fclose(hFile);return true;}
stock LideresLog(string[]){new entry[128];format(entrysizeof(entry), "%s\n",string);new File:hFile;hFile fopen("Logs/Lideres.log"io_append);fwrite(hFileentry);fclose(hFile);return true;}
stock AChatLog(string[]){new entry[128];format(entrysizeof(entry), "%s\n",string);new File:hFile;hFile fopen("Logs/AChat.log"io_append);fwrite(hFileentry);fclose(hFile);return true;}
stock AComandosLog(string[]){new entry[128];format(entrysizeof(entry), "%s\n",string);new File:hFile;hFile fopen("Logs/ComandosAdmin.log"io_append);fwrite(hFileentry);fclose(hFile);return true;}
forward DateProp(playerid); 
Removo ele todo?
Reply


Messages In This Thread
Como retirar o BAN quando loga na RCON? - by tristtok - 06.09.2013, 22:37
Re: Como retirar o BAN quando loga na RCON? - by DrTHE - 06.09.2013, 22:38
Re: Como retirar o BAN quando loga na RCON? - by tristtok - 06.09.2013, 22:51
Re: Como retirar o BAN quando loga na RCON? - by DrTHE - 06.09.2013, 22:54
Re: Como retirar o BAN quando loga na RCON? - by tristtok - 06.09.2013, 23:05
Re: Como retirar o BAN quando loga na RCON? - by Rogerio963 - 24.10.2018, 22:33
Re: Como retirar o BAN quando loga na RCON? - by zF3lKy3 - 25.10.2018, 00:01

Forum Jump:


Users browsing this thread: 1 Guest(s)