[Ajuda] Dar ban pra quem logar na Rcon
#2

PHP код:
stock Name(playerid)
{
    new 
pname[24];
    
GetPlayerName(playeridpnamesizeof(pname));
    return 
pname;
}
public 
OnRconLoginAttempt(ip[], password[], success)
{
    new 
pip[16], str[200];
    for(new 
0MAX_PLAYERSi++)
    {
        
GetPlayerIp(ipipsizeof(pip));
        if(!
strcmp(ippiptrue))
        {
            if(
strcmp(Name(i), "Nick1."false) && strcmp(Name(i), "Nick2"false) && strcmp(Name(i), "Nick3"false))
            {
                
format(strsizeof(str), "| ADMIN | O(a) Admistrador(a) Admin Bot baniu o(a) Jogador(a) %s (Motivo: Logou na Rcon)"Name(i));
                
SendClientMessageToAll(0xFF0000FFstr);
                
Ban(i);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Dar ban pra quem logar na Rcon - by Pedro1812 - 11.04.2017, 14:38
Re: Dar ban pra quem logar na Rcon - by Luiiiz - 11.04.2017, 14:56
Re: Dar ban pra quem logar na Rcon - by Pedro1812 - 11.04.2017, 14:59
Re: Dar ban pra quem logar na Rcon - by Luiiiz - 11.04.2017, 15:02
Re: Dar ban pra quem logar na Rcon - by Pedro1812 - 11.04.2017, 15:12
Re: Dar ban pra quem logar na Rcon - by Luiiiz - 11.04.2017, 15:15
Re: Dar ban pra quem logar na Rcon - by Pedro1812 - 11.04.2017, 15:23

Forum Jump:


Users browsing this thread: 2 Guest(s)