Jump to content
  • 0

Problema Rcon /rcon login


Question

9 answers to this question

Recommended Posts

  • 1
Posted

public OnRconLoginAttempt(ip[], password[], success)
{
      if(!success)
      {
          new pip[16];
          for(new i = 0; i < MAX_PLAYERS; i++)
          {
                if(IsPlayerConnected(i))
                {
                    GetPlayerIp(i, pip, sizeof(pip));
                    if(!strcmp(ip, pip, true))
                    {
                        if(PlayerInfo[i][pAdmin] < 7)
                        {
                            Kick(i);
                    }
                }
            }
        }
      }
      return 1;
}

incearca asa

  • 0
Posted
Acum 10 minute, Raduq a spus:

la ce te referi? cum nu merge?

In gamemode este linia cu securitate rcon OnRconLoginAttempt,

Dar cind intru pe server si scriu commanda /rcon login si parola de la rcon

Imi scrie ca aceasta commanda nu exista 

  • 0
Posted
Acum 1 minut, Raduq a spus:

arata tot de la onrconloginattempt te rog

Am incercat mai multe securitati si nici una nu mia mers

 

public OnRconLoginAttempt(ip[], password[], success)
{
    new doarodata = 0;
      if(!success)
      {
          new pip[16];
          for(new i = 0; i < MAX_PLAYERS; i++)
          {
            if(doarodata == 0)
            {
                if(IsPlayerConnected(i))
                {
                    GetPlayerIp(i, pip, sizeof(pip));
                    if(!strcmp(ip, pip, true))
                    {
                        if(PlayerInfo[i][pAdmin] < 7)
                        {
                            Kick(i);
                            doarodata = 1;
                        }
                    }
                }
            }
        }
      }
      return 1;
}

  • 0
Posted
Acum 2 ore, Raduq a spus:

public OnRconLoginAttempt(ip[], password[], success)
{
      if(!success)
      {
          new pip[16];
          for(new i = 0; i < MAX_PLAYERS; i++)
          {
                if(IsPlayerConnected(i))
                {
                    GetPlayerIp(i, pip, sizeof(pip));
                    if(!strcmp(ip, pip, true))
                    {
                        if(PlayerInfo[i][pAdmin] < 7)
                        {
                            Kick(i);
                    }
                }
            }
        }
      }
      return 1;
}

incearca asa

Mersi mult, a mers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.