Hedning Posted July 18, 2006 Share Posted July 18, 2006 Is it possible to make a !kill script? Like !kill Can somone here do it for me? Link to comment
lil Toady Posted July 18, 2006 Share Posted July 18, 2006 here's a good one: on *:SIGNAL:mta.command:{ if ($3 == !kill) { var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if (%a == -1) mta.msg $1 $2 Absent Name/ID elseif ($mta.health($1,%a) > 0) { var %b = $mta.health($1,%a) while (%b > 0) { mta.slap $1 %a %b = %b - 20 } } } } or if you want something simple: on *:SIGNAL:mta.command:{ elseif ($3 == !kill) { var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if (%a == -1) mta.msg $1 $2 Error - Absent ID else .timer 5 0 mta.slap $1 %a } } but it could be a little bit more spammy then the prev one Link to comment
CoZ Posted July 18, 2006 Share Posted July 18, 2006 i tried .. it doest give errors but it doesnt work either this will only work in mta for lc / vc but not SA right ? (i cant find the mta.health part in scripting command list) Link to comment
lil Toady Posted July 18, 2006 Share Posted July 18, 2006 (edited) thats for VC, because you cant slap in mta:sa yet (correct me if im wrong) Edited July 18, 2006 by Guest Link to comment
Recommended Posts