#define MAX_CONNECTIONS 3 public OnIncomingConnection(playerid, ip_address[], port) { new count = 1; for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if (IsPlayerConnected(i) && strcmp(GetPlayerIP(i), ip_address, false) == 0) { count ++; } } if (count > MAX_CONNECTIONS) { Kick(playerid); } return true; } stock GetPlayerIP(playerid) { new str[39 + 1]; GetPlayerIp(playerid, str, sizeof(str)); return str; }