Ip Kick ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ip Kick ? (
/showthread.php?tid=98388)
Ip Kick ? -
Nekom - 20.09.2009
There is a script to kick users who log on with account with the same ip?
Re: Ip Kick ? -
[NYRP]Mike. - 20.09.2009
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.
Re: Ip Kick ? -
Nekom - 20.09.2009
my problem is the bots, so I try a script that get up to 2 people with the same IP
Re: Ip Kick ? -
[NYRP]Mike. - 20.09.2009
Hmm so only two people can login with the SAME IP at the same time?
-Mike.
Re: Ip Kick ? -
Nekom - 20.09.2009
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
Re: Ip Kick ? -
Calgon - 20.09.2009
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.
Re: Ip Kick ? -
Nekom - 20.09.2009
if isplayerconnected
not neccessary ?
Re: Ip Kick ? -
Nekom - 20.09.2009
works, but not useless.
There is something to deflect attacks dos?
Re: Ip Kick ? -
Nekom - 21.09.2009
Up, There is something to deflect attacks dos?