Jump to content
  • 0

Problema Rcon /rcon login


XRoyal

Question

9 answers to this question

Recommended Posts

  • 1

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

Link to comment
Share on other sites

  • 0
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 

Link to comment
Share on other sites

  • 0
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;
}

Link to comment
Share on other sites

  • 0
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.