multikill Posted March 16, 2007 Share 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))) } Link to comment
lil Toady Posted March 16, 2007 Share 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))) } Link to comment
multikill Posted March 16, 2007 Author Share Posted March 16, 2007 i need to it to MTA:SA and it not work. Link to comment
BetaDevil Posted March 16, 2007 Share 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))) } Link to comment
lil Toady Posted March 16, 2007 Share Posted March 16, 2007 Wrong BetaDevil! Well, multikill, the script you posted should work, maybe that's you doing something wrong Link to comment
multikill Posted March 16, 2007 Author Share Posted March 16, 2007 not work... http://img258.imageshack.us/img258/6595/proplemvs4.jpg Link to comment
Scooby Posted March 17, 2007 Share Posted March 17, 2007 post what u have in ur script so we can see what u actually added. (just the lines u added) Link to comment
multikill Posted March 17, 2007 Author Share 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. Link to comment
Scooby Posted March 17, 2007 Share 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))) } Link to comment
multikill Posted March 17, 2007 Author Share Posted March 17, 2007 "Multikill is laughing out loud @" not work Link to comment
HouseMD Posted March 17, 2007 Share 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 Link to comment
multikill Posted March 17, 2007 Author Share Posted March 17, 2007 thx, it work perfectly Link to comment
lil Toady Posted March 17, 2007 Share 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))) } !!! Link to comment
multikill Posted March 17, 2007 Author Share 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 Link to comment
Scooby Posted March 17, 2007 Share 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. Link to comment
multikill Posted March 17, 2007 Author Share Posted March 17, 2007 not work so much hassle for a useless little thing :lol and nobody get it work Link to comment
Scooby Posted March 17, 2007 Share 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? Link to comment
HouseMD Posted March 17, 2007 Share 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" Link to comment
Recommended Posts