Author Topic: Delaying a client if spamming command  (Read 263 times)

I was about to make a command but I stumbled upon that I could make it so the client would be delayed from doing the command again to prevent server spam. But in this case when the client joins a message is sent to every player on the server, and I want it to not spam the message if the client continues to rejoin. If anyone knows how to do this please post the code.

Code: [Select]
//Without the delay
package Delay {
        function GameConnection::AutoAdminCheck(%client) {
        %client.clanPrefix=(%client.getRawIP);
        messageAll('',"\c2"@ %client.name SPC"\c6has connected from\c2"@ %client.getRawIP "\c6."); }
}
activatePackage(Delay);