Jump to content

script request


Hedning

Recommended Posts

Posted

here's a good one: :P

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

Do not PM me, im not going to read it anyway.

Posted

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)

coz_sig_oob.png

Server Blog | Server quickinfo

STFU and dont bug the mta team with ''when is DM comming''

or risk theyre spending more time explaining they're still working on DM than actually getting work done :shock:

Posted (edited)

thats for VC, because you cant slap in mta:sa yet (correct me if im wrong)

Edited by Guest

Do not PM me, im not going to read it anyway.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...