Jump to content
  • 0

Banuri pe server


FeLLiX*

Question

Problema intalnita (descriere): Playerii primesc ban pe server... si primesc doar pe ip, si tot le dau unban si dupa iar ban. Cumva ieri au avut ban, am sters samp.ban, nu a mai avut nimeni. Azi la fel, dimineata. si pe server nu apare nimic ca le da ban sau ceva... Si nu stiu de la ce e...
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):-
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Nu stiu ce sa fac..

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

JunkBuster-ul chiar aseara l-am bagat. Nu cred ca e de la el. deoarece am avut problema asta si ieri ziua..

Despre rcon ce sa zic... nu cred, ca nu le da ban la toti, la majoritatea... + ca am schimbat rcon-ul acum 2 zile.

Link to comment
Share on other sites

  • 0

Dar ban-urile apar in samp.ban , zici ? Daca da ... verifica pe undeva prin gamemode, cand un player face ceva, sa nu primeasca ban ... sa fie vreo capcana prin gamemode, pentru ca ma gandesc ca folosesti un edit ...

Edited by NoNamed
Link to comment
Share on other sites

  • 0

Dar nu e de la JB, aveam problema asta inainte sa adaug junkbuster-ul. 

Pentru ca am scos junkbuster-ul si am lasat o periodata fara. si deabea aseara l-am bagat. Dar asta cu banurile s-a intamplat si ieri ziua cand nu era junkbuster-ul....

Link to comment
Share on other sites

  • 0
// PROTECTIE
	    new ConnIP[16];
        GetPlayerIp(playerid,ConnIP,16);
        new compare_IP[16];
        new number_IP = 0;
        foreach(new i : Player) {
                if(IsPlayerConnected(i)) {
                    GetPlayerIp(i,compare_IP,16);
                    if(!strcmp(compare_IP,ConnIP)) number_IP++;
                }
        }
        if((GetTickCount() - Join_Stamp) < Time_Limit)
            exceed=1;
        else
            exceed=0;
        if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1 )
        {
            Same_IP++;
            if(Same_IP > SAME_IP_CONNECT)
            {
                        Ban(playerid);
                        Same_IP=0;
            }
        }
        else
        {
                Same_IP=0;
        }
        if(number_IP > IP_LIMIT)
            Kick(playerid);
        GetStampIP(playerid);
        
        if(IsPlayerNPC(playerid)) {
        new server_IP[16];
        format(server_IP, 16, "127.0.0.1");

        if(strcmp(ConnIP,server_IP,true) != 0) {
            Ban(playerid);
            return 0;
        }
	}

 

Link to comment
Share on other sites

  • 0

Sterge toata chestia aia de sus.

si adauga:

public OnPlayerConnect(playerid)
{
    if(ConnectedIPs(GetPlayerIp(playerid)) > 2) // Anti Bots
    {
        Ban(playerid);
        // SendClientMessage......ce vrei tu sa ii arate ex: SendClientMessage(playerid, COLOR_YELLOW, "You has been banned. Reason: {FF0000}IP Flood!");
    }
}


ConnectedIPs(IP_Address[])
{
    new SameIP = 0; foreach(Player, i) if(strcmp(GetPlayerIp(i), IP_Address) == 0) SameIP++; return SameIP;
}

 

Edited by KnowN

350x20_FFFFFF_FFFFFF_000000_000000.png

Link to comment
Share on other sites

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