Jump to content

Question

Posted

Salut,am si eu o problema,am un gm si vreau sa bag boti,dar dupa ce bag 5,al 6-lea ia kick automat,ce as putea modifica? Eu am modificat urmatoarele,dar degeaba

 

PlayerTextDrawHide(playerid, caseTD[0]);
    PlayerTextDrawHide(playerid, caseTD[1]);
    PlayerTextDrawHide(playerid, caseTD[2]);
    PlayerTextDrawHide(playerid, caseTD[3]);
    PlayerTextDrawHide(playerid, caseTD[4]);
    PlayerTextDrawHide(playerid, caseTD[5]);
    PlayerTextDrawHide(playerid, caseTD[6]);
    PlayerTextDrawHide(playerid, caseTD[7]);
    new playerip[16];
     GetPlayerIp(playerid,playerip,sizeof(playerip));
    if(NumIp(playerip, playerid) >= 5 && !IsBotOnIP(playerip))
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "There are already 2 players connected with same IP.");
        KickEx(playerid);
         return 1;
    }

5 answers to this question

Recommended Posts

  • 0
Posted
if(NumIp(playerip, playerid) >= 5 && !IsBotOnIP(playerip))

in loc de 5 pune mai mult.

  • 0
Posted

deci,bag 5 boti cu raksamp,iar al 6-lea cand il conectez,ii bag parola,ii da kick automat,fara nici un mesaj

  • 0
Posted

Verifica daca la OnPlayerConnect ai o restrictie de conectari pe IP, daca nu ai inseamna ca iti respinge host-ul (in cazul in care esti pe host) fiecare host are o protectie anti-bots.

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.