This should give you what you are needing. Below the ontext you will notice a script that detects flooding. It does this by setting a variable for the user that is flooding. "set u1 %floodcommand on" prevents the channel from using it for a second, "set u5 %floodcommand. $+ $nick" prevents the user from running that command for 5 seconds. This can be changed to your liking, but just showing you an example. smile

Code:
on *:text:!*:#: {
 if ((%floodcommand) || ($($+(%,floodcommand.,$nick),2))) { return }
  set -u1 %floodcommand On
  set -u5 %floodcommand. $+ $nick
  var %command = $1
  var %i = 1
  while (%i <= %commandID) {
    if ($readini(%commandFile, %i, name) == %command) && ($readini(%commandFile, %i, channel) == $chan) {
      var %msg = $readini(%commandFile, %i, message)
      // If the message has an @ symbol, $checkMsgAt will convert the @ back into a $
      %msg = $checkMsgAt(%msg)
      // Now we have to write the message to a .ini file then read from it, otherwise the bot will output as "$nick" instead of
      // the person's actual username.
      writeini -n %tempComFile command message %msg
      var %newMsg = $readini(%tempComFile, command, message)
      msg $chan %newMsg
      return
    }
    inc %i
  }
  msg $chan Command ( %command ) was not found $nick . Write !commands to see a list.
}