Double toast:
function serverCmdGetMapList(%client)
{
if($sim::time - %client.lastMapListRequestAt < 0.5)
{
if($sim::time - %client.mapRequsetSpamTimeAt < 0.5)
{
if(!%client.isLocalConnection())
{
messageAll('', "<font:impact:20>WARNING: I have reason to believe " @ %client.name @ " is trying to crash the server through getMapList spam. Killing client.");
%client.delete("Please do not try and crash this server. Thank you for your cooperation.");
return;
}
}
else
{
%client.mapRequsetSpamTimeAt = $sim::time;
return;
}
}
%client.lastMapListRequestAt = $sim::time;
if(%client.isAdmin)
{
return parent::serverCmdGetMapList(%client);
}
}