My script is Protect script with !protect on/off/status (i have do this 3 days :O)
I am stuck on the script i have made.. i dunno how i moving
can you help me?
- Code: Select all
on *:TEXT:!protect*:#: {
if ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) {
if (!$2) { notice $nick Syntax: $1 <on/off/status> | halt }
if ($2 == on) {
writeini settings.ini $chan protect on
notice $nick Done.
}
if ($2 == off) {
writeini settings.ini $chan protect off
notice $nick Done.
}
if ($2 == status) {
notice $nick Protection is currently: $iif($readini(settings.ini,$chan,protect),$v1,off)
}
}
}
on @!*:OP:#: {
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
mode $chan -oo $nick $opnick
/msg Q chanlev $chan $nick -ao
hadd cbans $chan $address($nick,1) You are not allowed to OP anyone on $chan - violation on: $date at $time
ban -k $chan $nick 1 You are not allowed to OP anyone on $chan - violation on: $date at $time - by %homechan
}
on @!*:DEOP:#: {
if ($nick == $me) {
msg Q op $chan
}
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
mode $chan -o+o $nick $opnick
hadd -m cbans $chan $address($nick,1) You are not allowed to DEOP anyone on $chan - violation on: $date at $time
/msg Q chanlev $chan $nick -ao
ban -k $chan $nick 1 You are not allowed to DEOP anyone on $chan - violation on: $date at $time
}
on @!*:KICK:#: {
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($
($chan) != on) { halt }
/msg Q chanlev $chan $nick -ao
writeini bans.ini $chan $address($nick,1) You are not allowed to KICK anyone on $chan - violation on: $date at $time
ban -k $chan $nick 1 You are not allowed to KICK anyone on $chan - violation on: $date at $time
}
on @!*:BAN:#: {
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
mode $chan -o+b-b $nick $address($nick,1) $banmask
/msg Q chanlev $chan $nick -ao
kick $chan $nick You are not allowed to BAN anyone on $chan - violation on: $date at: $time
writeini bans.ini $chan $address($nick,1) You are not allowed to BAN anyone on $chan - violation on: $date at $time
}
on @!*:UNBAN:#: {
if ($nick == $me) { halt }
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
mode $chan -o+b+b $nick $address($nick,1) $banmask
kick $chan $nick You are not allowed to BAN anyone on $chan - violation on: $date at: $time
/msg Q chanlev $chan $nick -ao
hadd cbans $chan $address($nick,1) You are not allowed to BAN anyone on $chan - violation on: $date at $time
}
on @!*:TOPIC:#: {
if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
mode $chan -o+b $nick $address($nick,1)
kick $chan $nick You are not allowed to CHANGE TOPIC on $chan - violation on: $date at $time
/msg Q chanlev $chan $nick -ao
hadd cbans $chan $address($nick,1) You are not allowed to CHANGE TOPIC on $chan - violation on: $date at $time
topic $chan $readini(settings.ini,topic,$chan)
}
So i am stuck..
its needed to be with
Anti:
ChangeTopic, Op, deop, ban, kick.
and its with !protect on/off/status
so i did !protect on
then it says me
Done.
then i checking status
it says me:
The protect is on
and i tested it with my friend (The userlist script is with userl.ini by AndRew)
so he wasnt in the userlist.
i tested him in a new chan with Q and all
he deop me or my bot..
My bot wasn't answers....

What can i do?
Help!
I am really stuck...
