07.01.2018, 03:58
Skimmed through this, one thing that caught my eye:
Why check this in the HTTP response, when you're already getting their IP address within OnPlayerConnect? Also I'd suggest making some more things more dynamic, the delay kick for example. Something such as:
You should also prefix the function, something such as "PROXY_DelayedKick" to avoid potential script conflicts.
Quote:
new ip[16]; GetPlayerIp(playerid, ip, sizeof(ip)); if(strcmp(ip, "127.0.0.1", true) == 0) return 1; |
Код:
SetTimerEx(...PROXY_KICK_DELAY,... #if !defined PROXY_KICK_DELAY #define PROXY_KICK_DELAY (1000) #endif