Usa este anti max ips assim ele sempre sera kickado a fazer isso e eficiente algumas vezes
pawn Code:
#include <a_samp>
#include <dini>
#define COL_WHITE "{FFFFFF}"
#define COL_LIGHTBLUE "{00C0FF}"
#define MAX_CONN 2
new IPDB[MAX_PLAYERS] = "255.255.255.255";
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Anti Max IPs Ativado");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Anti Max IPs Desativado");
print("--------------------------------------\n");
return 1;
}
public OnPlayerConnect(playerid)
{
ConnData(playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DiscData(playerid);
return 1;
}
forward ConnData(playerid);
public ConnData(playerid)
{
new IP[25],string[50];
GetPlayerIp(playerid, IP, 24);
format(IPDB[playerid], 24, "%s", IP);
dini_IntSet("IpMaxs.ini", IP, dini_Int("IpMaxs.ini", IP) + 1);
if(dini_Int("IpMaxs,ini", IP) > MAX_CONN)
{
format(string,sizeof(string), "["COL_LIGHTBLUE"Anti-Max IP"COL_WHITE"]: Jogador %s Foi Automaticamente Kickado[Motivo: Maximo de IPs 2]!",PlayerName(playerid));
SendClientMessageToAll(-1,string);
Kick(playerid);
}
}
forward DiscData(playerid);
public DiscData(playerid)
{
dini_IntSet("IpMaxs.ini", IPDB[playerid], dini_Int("IpMaxs.ini", IPDB[playerid]) - 1);
format(IPDB[playerid], 24, "%s", "255.255.255.255");
}
stock PlayerName(playerid)
{
new CName[25];
GetPlayerName(playerid, CName, 25);
return CName;
}