12.03.2014, 02:30
I deleted function NetStats_MessagesReceived.
NetStats_BytesReceived function causes the same problem
[debug] Server crashed while executing GameMode.amx
[debug] AMX backtrace:
[debug] #0 native NetStats_BytesReceived () [080d9f60] from samp03svr
[debug] #1 000f0008 in public TimerOneSecond () from GameMode.amx
...
p.s. I would not use these features, but how to defend against dos attacks?
NetStats_BytesReceived function causes the same problem
pawn Код:
for(new i, m = GetMaxPlayers(); i < m; i ++) {
if(!IsPlayerConnected(i)) continue;
f_var[1] = NetStats_BytesReceived(i);
if(f_var[1] - BytesCount[i] > 7500) {
Ban(i);
continue;
}
else BytesCount[i] = f_var[1];
...
}
[debug] Server crashed while executing GameMode.amx
[debug] AMX backtrace:
[debug] #0 native NetStats_BytesReceived () [080d9f60] from samp03svr
[debug] #1 000f0008 in public TimerOneSecond () from GameMode.amx
...
p.s. I would not use these features, but how to defend against dos attacks?