kekku500 Posted August 10, 2007 Posted August 10, 2007 how i can make like if says !brb then just says [NICK] Will Be Right Back! Reason: NONE and if says !brb toilet then says [NICK] Will Be Right Back! Reason: toilet
SanZoR Posted August 10, 2007 Posted August 10, 2007 if ($3 == !brb) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) will be right back! } else mta.text $1 $mta.nick($1,$2) will be right back - Reason: $4- } Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
kekku500 Posted August 10, 2007 Author Posted August 10, 2007 thx, but how i can also make !hi command like !hi -> [NICK] Says Hello To Everyone! !hi raz -> [NICK] Says Hello To Raziel! I mean it wont say raz but it will say full name, how i can do that?
SanZoR Posted August 10, 2007 Posted August 10, 2007 on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !hi) || ($3 == !hello) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) says hello to everyone! } else mta.text $1 $mta.nick($1,$2) says hello to $mta.nick($1,%a) } - or - on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !hi) || ($3 == !hello) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) says hello to everyone! } else mta.pm $1 %a $mta.nick($1,$2) says hello to you! } Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
lil Toady Posted August 10, 2007 Posted August 10, 2007 (edited) k, here's mine for both on *:SIGNAL:mta.command:{ if ($3 == !brb) mta.text $1 $mta.nick($1,$2) will be right back! $iif($4,Reason: $4-) elseif ($3 == !hi) mta.text $1 $mta.nick($1,$2) says hello to $iif($mta.getid($1,$4),$mta.nick($1,$mta.getid($1,$4)),everyone) $+ ! } Edited August 10, 2007 by Guest Do not PM me, im not going to read it anyway.
SanZoR Posted August 10, 2007 Posted August 10, 2007 k, here's mine for both on* :SIGNAL:mta.command:{ if ($3 == !brb) mta.text $1 $mta.nick($1,$2) will be right back! $iif($4,Reason: $4-) elseif ($3 == !hi) mta.text $1 $mta.nick($1,$2) says hello to $iif($mta.getid($1,$4),$mta.nick($1,$mta.getid($1,$4)),everyone) $+ ! } damn you Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
Recommended Posts