mIRC Home    About    Download    Register    News    Help

Topic Options
#247888 - 03/09/14 09:06 PM Help please, silly I know
raycomp Offline
Vogon poet

Registered: 04/05/13
Posts: 103
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 $+ .
}
}

Top
#247890 - 03/09/14 09:28 PM Re: Help please, silly I know [Re: raycomp]
Bramzee Offline
Vogon poet

Registered: 22/04/14
Posts: 170
if ($nick !isop #)

Top
#247892 - 03/09/14 10:23 PM Re: Help please, silly I know [Re: Bramzee]
raycomp Offline
Vogon poet

Registered: 04/05/13
Posts: 103
Thanks a lot

Top
#247908 - 07/09/14 04:16 PM Re: Help please, silly I know [Re: raycomp]
judge2020 Offline
Fjord artisan

Registered: 21/03/14
Posts: 215
Loc: USA
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
_________________________
#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball

Top