Let's say you have a server command called "serverCmdDoStuff"
You could put, at the start of said command:if($Sim::Time - %client.doStuffCooldown < (delay in seconds))
{
return;
}
And at the end of the function:%client.doStuffCooldown = $Sim::Time;
I'm sorry to be spoonfeeding here but that's really all there is to it, you check if difference between the current time and the last time they used the command is less than a predetermined number, and if so, denies use of the command. Once the command has been successfully executed, it sets the last time they used the command to the current time.