Jump to content
  • 0

Cum fac?


adelin97

Question

4 answers to this question

Recommended Posts

e buna asta?

public OnRconLoginAttempt(ip[], password[], success)

{

    if(!success) //If the password was incorrect

    {

        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.

            }

        }

    }

    return 1;

}

Link to comment
Share on other sites

e buna asta?

public OnRconLoginAttempt(ip[], password[], success)

{

    if(!success) //If the password was incorrect

    {

        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.

            }

        }

    }

    return 1;

}

E perfect ... luata de pe wiki :]]

http://wiki.sa-mp.com/wiki/OnRconLoginAttempt

E buna.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

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