Jump to content

Manhunt on MTAMA v3.09


noog

Recommended Posts

Does anyone have a working manhunt script for v3.09? the one that came wit h earlier versions no longer works and I'm unable to code one myself, (I have tried, and I have searched these forums for answers to no avail)

Also is there an organised place where mtama scripts are distributed? It's quite a hassle trawling through these forums looking at snippets of code

Thanks alot,

Simon.

Link to comment

screeny.JPG

I load the script on a clean copy of mIRC & mtama 3.09 with no other scripts loaded using Admin+ and as soon as one person connects they get the "This server is running in manhunt" stuff but then my mIRC client on my mtama machine causes an illegal operation :-/

Any idea what might be happening? I can't debug it since my mIRC locks up, I only have one server connected in that screenshot

(Apologies for the large JPG)

Link to comment

My friend made a modification to it, not sure what he did to it but it works for me now


alias mhdir !return $nofile($script(mta.mrc))
alias mh {
 if ($2 isnum) {
   if ($2 == 0) {
     !writeini -n $+(",$mhdir,$1.ini,") ID $+ % [ $+ [ $1 ] ] score $calc($readini($mhdir $+ $1.ini,ID $+ % [ $+ [ $1 ] ],score)+5)
     mta.say $1 $mta.name($1,% [ $+ [ $1 ] ]) survived for 10 mins! $mta.name($1,% [ $+ [ $1 ] ]) $+ 's score: $readini($mhdir $+ $1.ini,ID $+ % [ $+ [ $1 ] ],score) New fugitive!
     mh.pick $1
     mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
     !.timermh $+ $1 1 60 mh $1 9
   }
   else {
     mta.say $1 $mta.name($1,% [ $+ [ $1 ] ]) you must survive for $2 more mins!
     !.timermh $+ $1 1 60 mh $1 $calc($2 -1)
   }
 }
 if ($2 == on) {
   mh.pick $1
   !.timermh $+ $1 1 60 mh $1 9
   mta.say $1 ManHunt has begun!
   mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
 }
 if ($2 == off) {
   !unset % [ $+ [ $1 ] ]
   mta.say $1 ManHunt stopped!
   .timermh $+ $1 off
 }
}
alias mh.pick {
 var %a
 if ($mta.players($1) <= 3) {
   mta.say $1 ManHunt stopped! To few players!
   !unset % [ $+ [ $1 ] ]
   !.timermh $+ $1 off
   !halt
 }
 else {
   %a = % [ $+ [ $1 ] ]
   ;while ((!$ini($+($mhdir,$1,.ini),ID $+ % [ $+ [ $1 ] ])) || (%a == % [ $+ [ $1 ] ])) % [ $+ [ $1 ] ] = $rand(0,25)
   var %b = 32,%c
   if ($did(mta,$1 $+ 33) == GTA:3) %c = 12 35 41
   elseif ($did(mta,$1 $+ 22) == Stunt) %c = 10 20 30 50
   else %c = 11 12 13 50
   while %b > 0 {
     % [ $+ [ $1 ] ] = $rand(0,31)
     if ($mta.status($1,% [ $+ [ $1 ] ]) == 1) && (!$findtok(%c,$mta.vehicle($1,% [ $+ [ $1 ] ]),1,32)) && ($mta.idle($1,% [ $+ [ $1 ] ]) < 180) !return
     !dec %b
   }
 }
 mta.say $1 ManHunt stopped! To few suitible players!
 !unset % [ $+ [ $1 ] ]
 !.timermh $+ $1 off
 !halt
}
alias mta.admin {
 if (!mh == $2) mh $1 $3
}
alias mta.enter {
 if ($2 == % [ $+ [ $1 ] ]) {
   var %a
   if ($did(mta,$1 $+ 33) == GTA:3) %a = 12 35 41
   elseif ($did(mta,$1 $+ 22) == Stunt) %a = 10 20 30 50
   else %a = 11 12 13 50
   if ($findtok(%a,$3,1,32)) {
     mta.say $1 $mta.name($1,% [ $+ [ $1 ] ]) entered a illegal vehicle: $mta.vehicle($1,$2).name ! New fugitive!
     mh.pick $1
     mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
     !.timermh $+ $1 1 60 mh $1 9
   }
   else mta.say $1 Fugitive $mta.name($1,% [ $+ [ $1 ] ]) has a $mta.vehicle($1,% [ $+ [ $1 ] ]).name $+ !
 }
}
alias mta.exit {
 if ($2 == % [ $+ [ $1 ] ]) mta.say $1 Fugitive $mta.name($1,% [ $+ [ $1 ] ]) is on foot!
}
alias mta.command {
 if (% [ $+ [ $1 ] ]) {
   if ($3 == !score) {
     mta.say $1 $mta.name($1,$2) $+ 's score: $calc($readini($mhdir $+ $1.ini,ID $+ % [ $+ [ $1 ] ],score))
   }
   if ($3 == !hint) {
     mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ]) $chr(124) Time left: $duration($calc($timer(mh $+ $1).secs + $gettok($timer(mh $+ $1).com,3,32) * 60))
   }
 }
 if ($3 == !mh) {
   mh $1 $4 
 }
}
alias mta.disconnect {
 unset % [ $+ [ $1 ] ]
}
alias mta.join {
 if (% [ $+ [ $1 ] ]) {
   mta.msg $1 $2 Hello $mta.name($1,$2) Server is running in Manhunt mode.
   mta.msg $1 $2 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ]) $chr(124) Time left: $duration($calc($timer(mh $+ $1).secs + $gettok($timer(mh $+ $1).com,3,32) * 60))
 }
}
alias mta.part {
 if (% [ $+ [ $1 ] ] == $2) {
   mta.say $1 $mta.name($1,% [ $+ [ $1 ] ]) gives up! New fugitive!
   mh.pick $1
   mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
   !.timermh $+ $1 1 60 mh $1 9
 }
}
alias mta.kill {
 if (% [ $+ [ $1 ] ] == $2) {
   if (($3 == % [ $+ [ $1 ] ]) || ($3 > 99)) {
     mta.say $1 $mta.name($1,% [ $+ [ $1 ] ]) couldn't take the pressure! New fugitive!
     mh.pick $1
     mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
     !.timermh $+ $1 1 60 mh $1 
   }
   elseif ($3 <= 253) {
     % [ $+ [ $1 ] ] = $3
     !writeini -n $+(",$mhdir,$1.ini,") ID $+ $3 score $calc($readini($mhdir $+ $1.ini,ID $+ $3,score)+1)
     mta.say $1 $mta.name($1,$3) killed the fugitive! $mta.name($1,$3) $+ 's score: $readini($mhdir $+ $1.ini,ID $+ $3,score)
     mta.say $1 Fugitive: $mta.name($1,% [ $+ [ $1 ] ]) $chr(124) Skin: $mta.skin($1,% [ $+ [ $1 ] ]).name $chr(124) Vehicle: $mta.vehicle($1,% [ $+ [ $1 ] ]).name $chr(124) Area: $mta.area($1,% [ $+ [ $1 ] ])
     !.timermh $+ $1 1 60 mh $1 9
   }
 }
}


In area it says "Unknown" most of the time when a !hint is given, and on occasion the timeleft will be stuck to "0" but other than that it works pretty well!

thanks alot

Link to comment
this script worked well... but I have a question...

why it dont say the skin, the veichle and the area?

ex:

You are not connected with Admin+

My friend made a modification to it, not sure what he did to it but it works for me now

In area it says "Unknown" most of the time when a !hint is given, and on occasion the timeleft will be stuck to "0" but other than that it works pretty well!

thanks alot

He added "!mh on/off" for clients, nothing more. That crash has accured also to me, i dunno what it causes.

Link to comment
  • Recently Browsing   0 members

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