Ip Kick ?
#1

There is a script to kick users who log on with account with the same ip?
Reply
#2

Maybe use BanIP?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (!strcmp(cmdtext, "/banip", .length = 6) && IsPlayerAdmin(playerid))
  {
    if (!cmdtext[6])
      SendClientMessage(playerid, 0xFF0000FF, "Usage: /banip <ip>");

    else
    {
      new fcmd[32];
      format(fcmd, sizeof(fcmd), "banip %s", cmdtext[6]);
      SendRconCommand(fcmd);
      SendRconCommand("reloadbans");
    }
    return true;
  }
  return false;
}
Or do you mean only 1 account per IP?

-Mike.
Reply
#3

my problem is the bots, so I try a script that get up to 2 people with the same IP
Reply
#4

Hmm so only two people can login with the SAME IP at the same time?

-Mike.
Reply
#5

I'm Italian and I did not understand, ****** did not translate well ... However I ask if there is a script to kick people with the same IP
Reply
#6

I have no clue if this will work, excuse me if it doesn't but I'm half asleep:

pawn Код:
public OnPlayerConnect(playerid)
{
    new pip[16], pip2[16];
  for(new i=0; i<MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i))
{
    GetPlayerIp(i, pip, sizeof(pip));
    GetPlayerIp(playerid, pip2, sizeof(pip2));
        if(!strcmp(pip2, pip, true))
        {
          Kick(i);
        }
    }
}
    return 1;
}
You'll have to fix the indentation, as I said I was half asleep when I typed that out.
Reply
#7

if isplayerconnected

not neccessary ?
Reply
#8

works, but not useless.
There is something to deflect attacks dos?
Reply
#9

Up, There is something to deflect attacks dos?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)