multikill Posted March 16, 2007 Posted March 16, 2007 need script if i say: !lol Player its say: Multikill laughting out loud @ Player this script not work on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) }
lil Toady Posted March 16, 2007 Posted March 16, 2007 it does work on mta:sa, if you need that for 0.5 u need this: on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !lol) mta.say $1 $mta.name($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.name($1,%a))) }
BetaDevil Posted March 16, 2007 Posted March 16, 2007 on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !lol) mta.text $1 $mta.name($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.name($1,%a))) }
lil Toady Posted March 16, 2007 Posted March 16, 2007 Wrong BetaDevil! Well, multikill, the script you posted should work, maybe that's you doing something wrong
multikill Posted March 16, 2007 Author Posted March 16, 2007 not work... http://img258.imageshack.us/img258/6595/proplemvs4.jpg
Scooby Posted March 17, 2007 Posted March 17, 2007 post what u have in ur script so we can see what u actually added. (just the lines u added)
multikill Posted March 17, 2007 Author Posted March 17, 2007 on *:SIGNAL:mta.command:{ if ($3 == !time) || ($3 == !date) { mta.text $1 Time: $time - Date: $date } elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) if ($gus.level($1,$2) >= 10) { } var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !lol) mta.text $1 $mta.name($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.name($1,%a))) } This. All those work, but not that !lol.
Scooby Posted March 17, 2007 Posted March 17, 2007 thats because some of the code u used is for mtavc not mtasa try this: on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !time) || ($3 == !date) { mta.text $1 Time: $time - Date: $date } elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) elseif ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) }
multikill Posted March 17, 2007 Author Posted March 17, 2007 "Multikill is laughing out loud @" not work
HouseMD Posted March 17, 2007 Posted March 17, 2007 alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !time) || ($3 == !date) { mta.text $1 Time: $time - Date: $date } elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) elseif ($3 == !lol) { if (%a == -1) mta.text $1 $mta.nick($1,$2) is laughing out loud else mta.text $1 $mta.nick($1,$2) is laughing out loud @ $mta.nick($1,%a) } Try this
lil Toady Posted March 17, 2007 Posted March 17, 2007 on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2) if (($3 == !time) || ($3 == !date)) mta.text $1 Time: $time - Date: $date elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) elseif ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) } !!!
multikill Posted March 17, 2007 Author Posted March 17, 2007 (edited) not work lil toady and HouseMDD script... if i say "!lol Player" = "Multikill laughting out loud @ Player!" but "!lol" = "Multikill laughting out loud @ multikill" Real was "Multikill laughting out loud" And i using GUS if its help anything... Edited March 17, 2007 by Guest
Scooby Posted March 17, 2007 Posted March 17, 2007 so much hassle for a useless little thing here: elseif ($3 == !lol) { var %a = $iif((!$4),$2,$iif(($mta.getid($1,$+(*,$4,*)) == $null),$2,$v1)) mta.text $1 $mta.nick($1,$2) Is Laughing Out Loud $iif(%a != $2,At $mta.nick($1,%a)) } ive left my var %a line in the command so it wont interfere with the one u already use.
multikill Posted March 17, 2007 Author Posted March 17, 2007 not work so much hassle for a useless little thing :lol and nobody get it work
Scooby Posted March 17, 2007 Posted March 17, 2007 not work so much hassle for a useless little thing :lol and nobody get it work funny thing is... they work for me... ever thought u dont know what ur doing?
HouseMD Posted March 17, 2007 Posted March 17, 2007 ok ok... I fix it alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !time) || ($3 == !date) { mta.text $1 Time: $time - Date: $date } elseif ($3 == !map) { if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race else mta.text $1 Current Race: $mta.race($1) } elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) elseif ($3 == !lol) { if (%a == -1) mta.text $1 $mta.nick($1,$2) is laughing out loud elseif (%a == $2) mta.text $1 $mta.nick($1,$2) is laughing out loud else mta.text $1 $mta.nick($1,$2) is laughing out loud @ $mta.nick($1,%a) } There, it should say "Multikill is laughing out loud" when u say !lol and !lol player says "Multikill is laughing out loud @ Player"
Recommended Posts