Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

4 answers to this question

Recommended Posts

Posted

Pui o parola foarte grea pe care o stiu duar tu.

Daca cineva incearca de 3 ori sa se logheze si nu reuseste primeste ban automat

stats.php?page=2&ip=samp.zonek.ro&port=7777
Posted

Vezi ca ai ceva de genu OnRconLogin sau asa ceva, cauta pe wikipedia callback-ul.

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Posted

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;

}

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • 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.