Kizaru_Malfoy
Дебютант
Как убрать лимит подключения с одного IP?
Код:
public OnPlayerConnect(playerid)
{
#if defined debug_mode
printf("[DEBUG][OnPlayerConnect] playerid:%d", playerid);
#endif
if(IsPlayerNPC(playerid)) return 3;
GetPlayerName(playerid, p_info[playerid][name], MAX_PLAYER_NAME);
GetPlayerIp(playerid, p_t_info[playerid][p_ip], 16);
connect_players++;
new num_players_on_ip = GetNumberOfPlayersOnThisIP(p_t_info[playerid][p_ip]);
if(num_players_on_ip > 3)
{
BlockIpAddress(p_t_info[playerid][p_ip], 60 * 1000);
SetPlayerScore(playerid, random(5) + 1);
