[Ajuda] 3 Coisas
#1

Tenho um fs de anti-proxy e queria que mostrasse o nick do cara que foi kick por usar pra todo mundo й mandar mensagem para ele que ele tentou usar proxy no serve e foi kick, eu tentei so que aparece quando alguem loga normalmente й nem e kickado

CODE:

Код:
public OnLookupComplete(playerid)
{
  if(IsProxyUser(playerid))
  {
    Kick(playerid);
  }
}
й tambйm mostrar para todos e para o player que ele tentou logar na rcon e foi ban
Код:
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
Reply
#2

1 - Provavelmente deve haver algo errado com seu fs.

2 -
Код:
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        new otario[32];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                GetPlayerName(i, otario, sizeof(otario));
                Ban(i); //They are now banned.
            }
        }
        new str[128];
        format(str, sizeof(str), "Esse otбrio tentou logar na RCON e errou a senha: %s. Se fodeu.", otario);
        SendClientMessageToAll(0xFFFFFFFF, str);
3 -
Reply
#3

Era pra ser 2 AEHAUEHAUE
Reply
#4

O cуdigo postado acima funcionou?
Reply
#5

Funcionou valeu xd
+Rep
Reply
#6

O anti-proxy funciona normalmente й porque a metade dele й uma include
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)