29.01.2017, 22:36
Why you BlockIpAddress in OnPlayerDisconnect
Because when 2 players play on same IP (like brothers) and 1 disconnect the other also.
Code:
#if defined _inc_y_hooks || defined _INC_y_hooks
hook OnPlayerDisconnect(playerid, reason)
#else
public OnPlayerDisconnect(playerid, reason)
#endif
{
if(ACInfo[playerid][acOnline])
{
ACInfo[playerid][acOnline] = false;
if(!IsPlayerNPC(playerid))
{
KillTimer(ACInfo[playerid][acTimerID]);
if(ACInfo[playerid][acACAllow][37]) BlockIpAddress(ACInfo[playerid][acIp],
(AC_MIN_TIME_RECONNECT * 1000) - (reason ? 0 : GetConsoleVarAsInt("playertimeout")));
#undef AC_MIN_TIME_RECONNECT
}

