| Blockland Forums > Modification Help |
| Delaying a client if spamming command |
| (1/1) |
| FFSO:
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: ---//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); --- End code --- |
| Navigation |
| Message Index |