Change if(getSimTime() - %cl.lastReport > $Pref::Server::ReportTimeoutMS) to if(vectorDist(%cl.lastReport, getSimTime()) > $Pref::Server::ReportTimeoutMS).
No. Change the > to <.
==>echo(vectorDist(0, 30000) > 3000);1==>echo(vectorDist(0, 30000) < 3000);0
if(getSimTime() - %cl.lastReport > $Pref::Server::ReportTimeoutMS) return messageClient(%cl, '', "\c3You are reporting too fast!");
You should never use getSimTime(); because if the server is up for a really long time the number will get so big that glitches may start occurring. Use $Sim::Time instead. Take note though, $Sim::Time is in seconds, getSimTime(); is in milliseconds.
You should never use getSimTime(); because if the server is up for a really long time the number will get so big that glitches may start occurring.
==>echo(vectorDist(123456789, 123453789));3000
That's related to getSimTime(); how, exactly?
Not related to getSimTime(); either.
Why would you want to report when you are the administrator