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

Quote:
Originally Posted by Pedro1812
Посмотреть сообщение
vlw pelo codigo manolo!! mas deu esses erros aqui:

PHP код:
C:\Users\HomeUser\Desktop\[BRASILMATA MATA 2016 GUERRA DO SECULO 0.3.7\filterscripts\ladmin.pwn(4241) : warning 219local variable "Name" shadows a variable at a preceding level
C
:\Users\HomeUser\Desktop\[BRASILMATA MATA 2016 GUERRA DO SECULO 0.3.7\filterscripts\ladmin.pwn(4270) : warning 219local variable "Name" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings

Tente agora.
PHP код:
stock Nome(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(Nome(i), "Nick1."false))// && strcmp(Nome(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)"Nome(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: 1 Guest(s)