[Ajuda] Anti Login Rcon
#2

Nгo testei.

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	new IP[16], Nome[24];
	
	for(new i = 0; i < MAX_PLAYERS; ++ i)
	{
		if(!IsPlayerConnected(i)) continue;
		
		GetPlayerIp(i, IP, 16);
		
		if(strcmp(IP, ip, true) == 0)
		{
			GetPlayerName(i, Nome, 24);
			
			if(!(strcmp(Nome, "NOME_PERMITIDO", true) == 0))
			{
				BanEx(i, "Rcon Login");
			}
			break;
		}
	}
    return 1;
}
Reply


Messages In This Thread
Anti Login Rcon - by galazoiadria - 03.10.2016, 14:23
Re: Anti Login Rcon - by F1N4L - 03.10.2016, 14:30
Re: Anti Login Rcon - by nasser - 03.10.2016, 14:30
Re: Anti Login Rcon - by BobbMarley - 03.10.2016, 14:32
Re: Anti Login Rcon - by RodrigoMSR - 03.10.2016, 14:50
Re: Anti Login Rcon - by FalcaoNC - 03.10.2016, 19:10
Respuesta: Re: Anti Login Rcon - by SammyJ - 03.10.2016, 21:02
Re: Anti Login Rcon - by PedroEduardo - 03.10.2016, 21:23
Re: Anti Login Rcon - by HeisenGiromB - 04.10.2016, 17:41
Re: Anti Login Rcon - by F1N4L - 04.10.2016, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)