Skip to content
MSN

Quick Kick And Quick Ban Dialog Codes

A TG007 community discussion started by Jagie.

Discussion 4 posts
Page 1 of 1
Open
Topic #6359 · 4 published posts · 651 views

Hello can someone tell me the code for a sidebar

 

i want it so like when i click Kick on the sidebar it props up saying "Reason" and you enter the reason into there click ok and then it kicks them with that reason?

 

 

 

and can you do one for Quick Ban Too so it Props Up And Says "Minutes" and you put in there how many minutes hes going to be banned for and the u click oka dn then it props up again saying "reason" and then you put your reason in there so when it kick it will say

 

 

 

 

 

Host ****** Kicked Joe Bloggs Out Of The Room For : Reason Here (Minutes Banned)

 

 

 

Where it says minutes banned it shows how long i have banned him for

 

 

 

 

 

thanks a lot

 

jagie_259

 

 

Its what I do.

what exactly is this in reference to?

 

I'm presuming GuarDDog v. 5, but i only presume that because i'm the creator of it, but i cannot be sure, as you put this in the MSN section, and not GuarDDog section.

dialog kicker {
 title "Kicks"
 size -1 -1 346 66
 option pixels
 text "Kick for reason:", 1, 5 9 76 16
 combo 2, 88 7 245 100, size drop
 check "Ban for:", 3, 5 36 67 20
 edit "", 4, 87 36 50 21, disable
 text "Minutes", 5, 150 39 38 16
 button "Done", 6, 277 38 56 18, default
 button "Cancel", 7, 217 38 56 18
}
on *:dialog:kicker:init:0:{
 didtok $dname 2 44 Disruptive Behaviour,Using Profanity,I just plain don't like you
 did -f $dname 2
}
on *:dialog:kicker:sclick:3:{
 if ($did(3).state == 1) { did -e $dname 4 }
 else { did -b $dname 4 }
}
on *:dialog:kicker:sclick:7:{ dialog -x $dname }
on *:dialog:kicker:sclick:6:{
 if ($did(3).state == 1) {
   kick $active %kicker.nick $did(2).seltext
 }
 elseif ($did(3).state != 1) {
   kick $active %kicker.nick $did(2).seltext $+ $chr(32) $+ (Access Ban Set for $did(4).text Minutes) $calc($did(4).text * 60)
 }
 dialog -x $dname
}

that should be right (havent done a dialog in ages)... just store the nickname as %kicker.nick when you click to kick :)

Edited Apr 13, 2006 11:08 AM by Angelia

People are like slinkies; they're generally boring until you push them down stairs

Hello can someone tell me the code for a sidebar

 

i want it so like when i click Kick on the sidebar it props up saying "Reason" and you enter the reason into there click ok and then it kicks them with that reason?

 

and can you do one for Quick Ban Too so it Props Up And Says "Minutes" and you put in there how many minutes hes going to be banned for and the u click oka dn then it props up again saying "reason" and then you put your reason in there so when it kick it will say

on *:dialog:blah:sclick:IDNo:{
 kick $active $gettok($did(37).seltext,6,32) $??="Reason"
}
on *:dialog:blah:sclick:IDno:{
 set %timetoban $??="Time[On Minutes]"
 access $active add DENY $+(*!,$ial($gettok($did(37).seltext,6,32)).addr)) %timetoban :Baned By $me
 kick $active $gettok($did(37).seltext,6,32) $??="Reason" Baned For %timetoban Minutes
}

Ok look at the $gettok thats cuz on my nicklist i have colors and Icons on it,

and when i use the $did(IDno).seltext which is the sellected test on the Nick List, there are several numbers and stuff that came up there cuz of the colors and icons.

if you dont use colors or anithing on there you may have to change that lil thing on the code.

 

I recomed to add on the sclick code an echo -a $did(ListIDno).seltext so u can see where the nickname is, to edit the $gettok.

|[ Simple Code ]|