Skip to content
MSN Addons

plz who know that?!!

A TG007 community discussion started by samooh_2003.

Discussion 13 posts
Page 1 of 1
Open
Topic #3004 · 13 published posts · 1,450 views

plz how can i do the command from the script

Ex:

`q <nick>

script owner the nick but i wrote the comand from the script

menu nicklist {
Owner $1 { mode $chan +q $1 }
-
Deowner $1 { mode $chan -q $1 }
-
Host $1 { mode $chan +h $1 }
-
Dehost $1 { mode $chan -h $1 }
}

 

The code above is for when you right click in the nicklist on the nickname you select.

Here someone set to admin list can whisper script `q (nick) or via main room `q (nick).

 

on *admin:text:*`q*:*: {
 if ($me isowner $chan) {
   mode $chan +q $2
 }
}

Edited Mar 1, 2005 9:11 PM by Mail

 

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock".-Will Rogers

thnx for answer but u got me wrong that if i added my self then i wanna use the command but i am asking how can i do it from inside da script like the nicklist popup i use it for own or host and so on but i wanna write command from the script and let script do it not user who say `q but me from inside

so no one got wt i saied or wt

thnx for answer but u got me wrong that if i added my self then i wanna use the command but i am asking how can i do it from inside da script like the nicklist popup i use it for own or host and so on but i wanna write command from the script and let script do it not user who say `q but me from inside

So you wanna +q ppl from inside the script using a comnmand instead of the nicklist? like "mode $chan +q $$1" Is so..

u can use This

Alias qup { mode # +q $1 }

 

Now u can type in ur script /qup <nick> and u will +q him

You mean you want to type the command through your script, i.e. `q Ryan0r

 

To do this your gonna have to do it through the input.

 

on *:INPUT:#: {
 if ($left($1-,1) != /) {
 if ($1 = `q) { var %nick $2 | mode $active +q %nick }
}
}

why var %nick $2 ?

why not just mode $active +q $2 directly ?

on me:*:join:#:hop #

on *:INPUT:#: {
if ($left($1,1) != /) {
if ($1 = `q) && ($2) { mode $active +q $2 }
}
}

My code does NOT have bugs. It just develops random features.

whatever works...

Thnx alot for u and all who answered & merci ozzy it is working good tanx all

on *:INPUT:#: {
 if ($left($1,1) != /) {
   if ($1 = `q) && ($2) { mode $active +q $2 }
 }
}
on *:INPUT:#: {
 if ($left($1,1) != /) {
   if ($1 = `o) && ($2) { mode $active +o $2 }
 }
}

 

it is working alone good and if i changed it with +o it is working 2 but if there more than one with different mode doesnot work just 1st it is working and the all doesnot so how can i do it for more than one?

on *:INPUT:#: {
 if ($left($1,1) != /) {
   if ($1 = >own) && ($2) { mode $active +q $2 }
   if ($1 = >host) && ($2) { mode $active +o $2 }
 }
}

 

 

thnx this is the code for wt i asked now it is working ...thnx all