18.06.2018, 18:57
how to make a simple ips limiter
this code is bug
this code is bug
Код:
public OnPlayerConnect(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); // Ban is the safest thing here, as if you kick, they can still flood you with endless connections return 0; } } return 1; }