Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Ok due to the scripts archive being down i thought i would post it here.

I made a script that admins can recruit by a command. Here it is:

if ($3 == !recruit && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ]) {

if ($4 != $null) {

!set %recruit [ $+ [ $4 ] ] = true

mta.msg $1 $4 Our Admins wish to invite you to join the clan! - Please say !yes or !no.

}

else {

mta.msg $1 $2 Usage : !recruit

}

}

elseif ($3 == !yes && %recruit [ $+ [ $2 ] ]) {

mta.msg $1 $2 Please contact within 2 days!

!unset %recruit [ $+ [ $2 ] ]

}

elseif ($3 == !no && %recruit [ $+ [ $2 ] ]) {

mta.msg $1 $2 Ok no problem, if you change your mind contact an admin. Enjoy your stay!

!unset %recruit [ $+ [ $2 ] ]

}

elseif ($3 == !off %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ]) {

!unset %recruit [ $+ [ * ] ]

mta.msg $1 $2 Recruitment unset.

}

}

Posted
mta.msg $1 $2 Usage : !recruit

Dan, I thought you might be a better scripter after these few weeks. Anything that is ID driven has to be unset when that ID parts.

Just for your consideration.

Posted

Harry m8 ive been away for 3 weeks so i didnt know about mtama 3 til a couple of days ago. Plus i lost a bit of my knowledge of scriptingwhile i was away coz i formatted my comp and had no scripts.

Posted

I dont Tend To use that but having a Bash at it i would say

  if (!weapon == $3) {
   if ($4 != $null) {
       mta.msg $1 $2 $mta.name($1,$2) You Have a $mta.weapon($1,$2)
     }
     else {
       mta.msg $1 $2 $mta.name($1,$4) Has a $mta.weapon($1,$4)

Posted

LOL, $mta.weapon is for showin weapon name of weapon id, nuthin else, u cannot use it for showin a players weapon.......

Posted

I wonder whether it is possible to read out these values reliable, without 100% CPU usage. Every change of weapon is a event in mirc at that moment, or you have to use polling. Both methods are CPU-expensive.

I guess it is not doable to program these variables into MTA:MA

It is up to Aeron to implement en test if it's usable, I certainly doubt it.

Posted

i would say use of events to do it would be the best way with irc, but with the number of ppl and the number of events needed it would be crazy.

I dont see it happening to be honest, irc is just too resticting :(

BUT maybe aeron could put it directly into the dll, THEN maybe it would work

Posted
it shows up in that bitch ass bot, cudnt u do it the same way?

No, the data the admin+ recieves are:

ID

CarID

Health

X

Y

Z

Nothing more so no:

Rotation

Weapon switch

And other things like:

Spawning

Crc check

Posted

Career chosen can be identified in mtama, by checking the coords of a player that just died and matching them against a list of careers spawn areas. Pretty CPU intensive tho especially if you have a lot of other scripts running alongside. Something to consider for future admin+ connections maybe.

Posted

Hi guys,

I have an idea for an MTA:MA script, but I'm not sure if it can be done.

Basically, the when some gets 10 consecutive kills without dying, the console says " is on a killing spree!" and 20 would be something like " is unstoppable!".

It could also be for deaths, for example when someone dies 3 times without making a kill, it would say, " has died 3 times since their last kill....Poor!".

If a player kills someone who was on a killing spree, it would say, " has stopped 's killing spree>".

This is just a basic idea, but it could be worked on.

Sorry if someone has already posted this.

Thanks for reading,

Lips

Posted

yeah thats pretty simple, ill post it up for u tomorrow when ive got some time :) unless someone else does it before then ;)

Posted

Hi all,

try this !! hehehe

(i know that my english is bed in this scripts and generally, but i translate text this script on english that you know how this work lol :):D:D )

if ($3 == !xp) && (RP isin $mta.name($1,$2)) {
%b = $iif($4 isnum,$4,$mta.getid($1,$4))
 if ($4 != $null) {
      if ($mta.name($1,$4) == unknown) { 
        mta.say $1 Procedure stop, reason: shortage require informations, error absent ID: $4 ! 
      } 
  else {
   mta.say $1 Collection informations is running: 1. Search host: $mta.dns($1,%b)
   .timer 1 2 mta.say $1 2. Collection IP adress:
   .timer 1 3 mta.say $1 $mta.name($1,$4): $mta.ip($1,$4). 
   .timer 1 5 mta.say $1 3. Cracking access code:
   .timer 1 6 mta.say $1 BZYA-986Y-K6Z4-OAN7 failed.
   .timer 1 6 mta.say $1 YSAA-9867-KHGH-O321 failed.
   .timer 1 6 mta.say $1 EWOA-9W43-3411-MK8L failed.
   .timer 1 6 mta.say $1 MUSD-986Y-ZM59-82TA failed.
   .timer 1 6 mta.say $1 BZYA-9832-K6Z4-TAU3 failed.
   .timer 1 7 mta.say $1 JOSG-6666-6MAH-3545 failed.
   .timer 1 7 mta.say $1 MAID-7777-SDFG-I0P4 failed.
   .timer 1 7 mta.say $1 LQOA-1239-AJHH-QWE3 failed.
   .timer 1 7 mta.say $1 ILUG-7664-QWEA-HJK5 failed.
   .timer 1 7 mta.say $1 TDCS-5379-A4MN-76GD failed.
   .timer 1 8 mta.say $1 ASDF-0980-2SYB-7WMN failed.
   .timer 1 8 mta.say $1 UHLJ-5689-MA7D-62DN failed.
   .timer 1 8 mta.say $1 MUAH-2342-8ASM-MA5D failed.
   .timer 1 8 mta.say $1 XPPS-MUAH-PRW3-84T7 ok.
   .timer 1 10 mta.say $1 ******** failed.
   .timer 1 11 mta.say $1 ************ ok.  
   .timer 1 13 mta.say $1 Collection informations complete ! 
   .timer 1 15 mta.say $1 Delete date from XP system $mta.name($1,$4) is launch ! 
   .timer 1 16 mta.say $1 [-||----] 25%
   .timer 1 17 mta.say $1 [-||||---] 50%
   .timer 1 18 mta.say $1 [-||||||--] 75%
   .timer 1 19 mta.say $1 [-||||||||-] 100%
   .timer 1 21 mta.say $1 Procedure has been complited ($time $date) !
   .timer 1 23 mta.say $1 $mta.name($1,$4) your computer won't work for:
   .timer 1 24 mta.say $1 3
   .timer 1 25 mta.say $1 2
   .timer 1 26 mta.say $1 1
   .timer 1 28 mta.say $1 JOKE !!! hahahahahahahahaha !
   }
 }
 else {
   mta.say $1 Error - absent ID, and system receive require informations to start procedure !
 }
}

heheh 80% ppl who "get" this procedure, escape from server before script ending work... :D:D:D

heheheh

one can change

    .timer 1 28 mta.say $1 JOKE !!! hahahahahahahahaha !

on

    .timer 1 28 mta.say $1  mta.kick $1 $4 

lol :D

  • 2 weeks later...
Posted

Okay the idea..

let members logg ip's off suspected cheates in a ini file.. so that a admin can check it later on and take action.

Ive come this far:

elseif (($3 == !suspect) &&  (%ismember. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true)) {
  writeini "mtasuspect.ini" suspect $mta.name($1,$2) + $mta.name($1,$4) $+ 's ip: $mta.ip($1,$4) $4-
  mta.say $1 $mta.name($1,$4) $+ 's ip: $mta.ip($1,$4) is noted as a suspected cheater.
}

it works but it overwrites it when they logg a next suspect later on...

and I don't know how to make it so that it returns an error when they don't give a id or/and reason

any idea's would be handy

greetz

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...