[Ajuda] Rcon
#1

Como botar meu nome pra poder logar na rcon sem tomar ban ?
Reply
#2

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
     if(success)
     {
          new pip[16];
          for(new i = 0; i<MAX_PLAYERS; ++i)
          {
               GetPlayerName(i, sendername, sizeof(sendername));
               GetPlayerIp(i, pip, sizeof(pip));
               if(!strcmp(ip, pip, true))
               {
                    if(strcmp(sendername,"Nome", true) == 0)
                    {
                        SendClientMessage(playerid, COR_GREY, "Logado RCON !");
                        return true;
                    }
                    else
                    {
						 SendClientMessage(i, COR_GREY, "Vocк foi banido por tentar logar rcon !");
                         ban(i);
                    }
                }
          }
     }
     return 1;
}
Reply
#3

Quote:
Originally Posted by sKYFallout
Посмотреть сообщение
Код:
public OnRconLoginAttempt(ip[], password[], success)
{
     if(success)
     {
          new pip[16];
          for(new i = 0; i<MAX_PLAYERS; ++i)
          {
               GetPlayerName(i, sendername, sizeof(sendername));
               GetPlayerIp(i, pip, sizeof(pip));
               if(!strcmp(ip, pip, true))
               {
                    if(strcmp(sendername,"Nome", true) == 0)
                    {
                        SendClientMessage(playerid, COR_GREY, "Logado RCON !");
                        return true;
                    }
                    else
                    {
						 SendClientMessage(i, COR_GREY, "Vocк foi banido por tentar logar rcon !");
                         ban(i);
                    }
                }
          }
     }
     return 1;
}

Onde eu boto ?

Olha o meu, poderia modificar para nгo dar ban ?

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)
    {
        new pip[16];
        for(new i=0; i<MaiorID; i++)
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {
                SendClientMessage(i, COLOR_YELLOW, "OPA!!!!!!!!!!!!!!!!!!");
                if(ServerOwner[i] != 1)
                {
                    ClearChatbox(i, 100);
                    SendClientMessage(i, COLOR_YELLOW, "Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
                    SendClientMessage(i, COLOR_YELLOW, "A culpa nгo eh minha seu invejoso, sua inveja eh minha fama caralho!");
                    getdate(year, month, day);
                    gettime(hour,minute);
                    format(gstring,sizeof(gstring), "%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),day, month, year,hour, minute);
                    fdplog(gstring);
                    SBan(i, "Admin Rcon", "Automatico");
                    break;
                }
            }
        }
    }
    return 1;
Reply
#4

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        new 
pip[16];
        for(new 
i=0i<MaiorIDi++)
        {
            
GetPlayerIp(ipipsizeof(pip));
            if(!
strcmp(ippiptrue))
            {
                
SendClientMessage(iCOLOR_YELLOW"OPA!!!!!!!!!!!!!!!!!!");
                if(
ServerOwner[i] != 1)
                {
                    
ClearChatbox(i100);
                    
SendClientMessage(iCOLOR_YELLOW"Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
                    
SendClientMessage(iCOLOR_YELLOW"A culpa nгo eh minha seu invejoso, sua inveja eh minha fama caralho!");
                    
getdate(yearmonthday);
                    
gettime(hour,minute);
                    
                    
format(gstring,sizeof(gstring), "%s foi kickado por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),daymonthyear,hourminute);
                    
fdplog(gstring);
                    
Kick(i);
                    
                    break;
                }
            }
        }
    }
    return 
1;

Reply
#5

Quote:
Originally Posted by CZ
Посмотреть сообщение
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        new 
pip[16];
        for(new 
i=0i<MaiorIDi++)
        {
            
GetPlayerIp(ipipsizeof(pip));
            if(!
strcmp(ippiptrue))
            {
                
SendClientMessage(iCOLOR_YELLOW"OPA!!!!!!!!!!!!!!!!!!");
                if(
ServerOwner[i] != 1)
                {
                    
ClearChatbox(i100);
                    
SendClientMessage(iCOLOR_YELLOW"Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
                    
SendClientMessage(iCOLOR_YELLOW"A culpa nгo eh minha seu invejoso, sua inveja eh minha fama caralho!");
                    
getdate(yearmonthday);
                    
gettime(hour,minute);
                    
                    
format(gstring,sizeof(gstring), "%s foi kickado por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),daymonthyear,hourminute);
                    
fdplog(gstring);
                    
Kick(i);
                    
                    break;
                }
            }
        }
    }
    return 
1;

Onde boto meu nick pra n tomar ban ?
Onde edito a rcon ?
Reply
#6

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
     if(
success)
     {
          new 
pip[16];
          for(new 
0i<MAX_PLAYERS; ++i)
          {
               
GetPlayerName(isendernamesizeof(sendername));
               
GetPlayerIp(ipipsizeof(pip));
               if(!
strcmp(ippiptrue))
               {
                    if(
strcmp(sendername," SEU NICK AQUI <~~"true) == 0// NOME ALI <---
                    
{
                        
SendClientMessage(playeridCOR_GREY"Logado RCON !");
                        return 
true;
                    }
                    else
                    {
                         
SendClientMessage(iCOR_GREY"Vocк foi banido por tentar logar rcon !");
                         
ban(i);
                    }
                }
          }
     }
     return 
1;

Pra vocк mudar a rcon abra o server.cfg, depois vai ter rcon_password ai vc muda lб.
Reply
#7

Quote:
Originally Posted by CZ
Посмотреть сообщение
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
     if(
success)
     {
          new 
pip[16];
          for(new 
0i<MAX_PLAYERS; ++i)
          {
               
GetPlayerName(isendernamesizeof(sendername));
               
GetPlayerIp(ipipsizeof(pip));
               if(!
strcmp(ippiptrue))
               {
                    if(
strcmp(sendername," SEU NICK AQUI <~~"true) == 0// NOME ALI <---
                    
{
                        
SendClientMessage(playeridCOR_GREY"Logado RCON !");
                        return 
true;
                    }
                    else
                    {
                         
SendClientMessage(iCOR_GREY"Vocк foi banido por tentar logar rcon !");
                         
ban(i);
                    }
                }
          }
     }
     return 
1;

Pra vocк mudar a rcon abra o server.cfg, depois vai ter rcon_password ai vc muda lб.
C:\Users\DG\Desktop\Brasil Real Live\gamemodes\BRL.pwn(67235) : error 017: undefined symbol "playerid"
C:\Users\DG\Desktop\Brasil Real Live\gamemodes\BRL.pwn(67240) : error 017: undefined symbol "COR_GREY"
C:\Users\DG\Desktop\Brasil Real Live\gamemodes\BRL.pwn(67241) : error 017: undefined symbol "ban"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#8

PHP код:
//TOPO DO GM

#define COR_GREY    0x2F4F4FFF


public OnRconLoginAttempt(ip[], password[], success)
{
     if(
success)
     {
          new 
pip[16];
          for(new 
0MAX_PLAYERS; ++i)
          {
               
GetPlayerName(isendernamesizeof(sendername));
               
GetPlayerIp(ipipsizeof(pip));
               if(!
strcmp(ippiptrue))
               {
                    if(
strcmp(sendername,"Coloque seu nick aqui"true) == 0// NICK ALI <---
                    
{
                        
SendClientMessage(iCOR_GREY"Logado RCON !");
                        return 
true;
                    }
                    else
                    {
                         
SendClientMessage(iCOR_GREY"Vocк foi banido por tentar logar rcon !");
                         
Ban(i);
                    }
                }
          }
     }
     return 
1;

Reply
#9

Quote:
Originally Posted by CZ
Посмотреть сообщение
PHP код:
//TOPO DO GM
#define COR_GREY    0x2F4F4FFF
public OnRconLoginAttempt(ip[], password[], success)
{
     if(
success)
     {
          new 
pip[16];
          for(new 
0MAX_PLAYERS; ++i)
          {
               
GetPlayerName(isendernamesizeof(sendername));
               
GetPlayerIp(ipipsizeof(pip));
               if(!
strcmp(ippiptrue))
               {
                    if(
strcmp(sendername,"Coloque seu nick aqui"true) == 0// NICK ALI <---
                    
{
                        
SendClientMessage(iCOR_GREY"Logado RCON !");
                        return 
true;
                    }
                    else
                    {
                         
SendClientMessage(iCOR_GREY"Vocк foi banido por tentar logar rcon !");
                         
Ban(i);
                    }
                }
          }
     }
     return 
1;

Ainda to tomando ban quando digito a rcon
Reply
#10

Vocк colocou o seu nick aqui? obs: tem que ser o nick que vc vai entrar no servidor.
PHP код:
if(strcmp(sendername,"Coloque seu nick aqui"true) == 0
Exemplo:
PHP код:
if(strcmp(sendername,"GMVega"true) == 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)