mIRC Homepage

Help please, silly I know

Posted By: raycomp

Help please, silly I know - 03/09/14 08:06 PM

I want to add a message if not op


It is silly but tried it in various positions in the routine below but cant get it to work. Please do not laugh

else { /msg $chan Only OPS can start a vote. | halt }

Quote:
on *:text:!addvote*:#vote: {
if ($2- == $null) {
notice $nick $c1 you need to enter a vote question.
halt
else
}
if ($nick isop $chan || $nick ishop $chan) {
set %vote.setting [ $+ [ $chan ] ] ON
set %vote.nick [ $+ [ $chan ] ] $nick
set %vote.question [ $+ [ $chan ] ] $3-
set %time $2
notice $nick $c1 Voting question has been set up, please now type $c2 !addoption(1-5) $c4 <vote option(1-5)> $c1 $+ .
}
}
Posted By: Bramzee

Re: Help please, silly I know - 03/09/14 08:28 PM

if ($nick !isop #)
Posted By: raycomp

Re: Help please, silly I know - 03/09/14 09:23 PM

Thanks a lot
Posted By: judge2020

Re: Help please, silly I know - 07/09/14 03:16 PM

Originally Posted By: raycomp


else { /msg $chan Only OPS can start a vote. | halt }

You don't have to put a slash in remote scripts smile
Also you can use [ code] [/code] instead of quoting for scripts, or click the pound symbol in the reply bar and click the code section
© 2019 mIRC Discussion Forums