mIRC Home    About    Download    Register    News    Help

Print Thread
#247328 30/07/14 04:35 AM
Joined: Jul 2014
Posts: 1
C
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Jul 2014
Posts: 1
Can someone tell me how do I make this command be op only?
I tried a lot of things...without any success


on *:TEXT:!addquote*:#:{
if ((%floodcommands) || ($($+(%,floodcommands.,$nick),2))) { return }
set -u10 %floodcommands On
set -u30 %floodcommands. $+ $nick On
.write QuoteScript\QuotesReviewPear.txt $nick : $2- } { msg $chan Your quote has been added for review }

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try this

Code:
ON *:TEXT:!addquote*:#:{
  if ($nick !isop $chan) { notice $nick Error, You must be an channel operator (@) on the $chan channel! | return }
  if ((%floodcommands) || ($($+(%,floodcommands.,$nick),2))) { return }
  set -u10 %floodcommands On
  set -u30 %floodcommands. $+ $nick On
  .write QuoteScript\QuotesReviewPear.txt $nick : $2- 
  msg $chan Your quote has been added for review 
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard