Jump to content

MTA:MA Scripting


Harry

Recommended Posts

  • Replies 357
  • Created
  • Last Reply

Top Posters In This Topic

Erm, yes it can. An admin slap hurts a player to the tune of 20 H.P.

It will take 20 hp id, but when they are dead (5 times slapped) they respawn, and get d/c for supected trainer usage (300 AP). cause it will not take doem there AP

Link to comment
  • 2 weeks later...

Alright got a question, is there any better way to this? !list mex or another skin, because this seems to not be working 100%. It doesent list all the names witch are the skin. This is just one example.

 if ($3 == !list) {
   if (rob isin $4) {
     var %aa = 0,%listrobbers
     while (%aa <= $mta.maxplayers($1)) {
       if ($mta.skin($1,%aa) == 2 && $mta.status($1,%aa) == 2) {
         if (!%listrobbers) %listrobbers = $mta.name($1,%aa)
         else %listrobbers = %listrobbers $+ , $mta.name($1,%aa)
       }
       !inc %aa
     }
     mta.say $1 $iif(%listrobbers,Robbers: %listrobbers,There are no Robbers)
   }

Link to comment

ok i was given a Custome RPG script and its !car and !skin commands are trashed. I looked up some other RPG's and made the car ID's and damage appear when entering but when i made it a command ( changed mta.enter to mta.command) It wouldnt work. Anyone have some tips about both Skins and/or Car Id's?

Link to comment
Alright got a question, is there any better way to this? !list mex or another skin, because this seems to not be working 100%. It doesent list all the names witch are the skin. This is just one example.

 if ($3 == !list) {
   if (rob isin $4) {
     var %aa = 0,%listrobbers
     while (%aa <= $mta.maxplayers($1)) {
       if ($mta.skin($1,%aa) == 2 && $mta.status($1,%aa) == 2) {
         if (!%listrobbers) %listrobbers = $mta.name($1,%aa)
         else %listrobbers = %listrobbers $+ , $mta.name($1,%aa)
       }
       !inc %aa
     }
     mta.say $1 $iif(%listrobbers,Robbers: %listrobbers,There are no Robbers)
   }

it list only robbers who are ingame, and skin dwetection ain't perfect.

Link to comment
ok i was given a Custome RPG script and its !car and !skin commands are trashed. I looked up some other RPG's and made the car ID's and damage appear when entering but when i made it a command ( changed mta.enter to mta.command) It wouldnt work. Anyone have some tips about both Skins and/or Car Id's?

changing mta.enter to mta.command wont work :>

try:

on *:SIGNAL:mta.enter: {

mta.msg $1 $2 Vehicle: $mta.vehicle($1,$2).name $+([,$mta.vehicle($1,$2),]) Health: $mta.health($1,$2).vehicle

}

Link to comment
i already have that, i need to make it work as a command like !car.

on *:SIGNAL:mta.command: {

if ($3- == !car) {

mta.msg $1 $2 Vehicle: $mta.vehicle($1,$2).name $+([,$mta.vehicle($1,$2),]) Health: $mta.health($1,$2).vehicle

}

}

Link to comment
the above script outputs this....

Punk is currently a passenger in a . Vehicle Health: 65% [|||||||]. Player Health: 99% [||||||||||]

what is wrong?

you got the mta.data.ini with all the list of cars in them?

thats all I can think of unless tehre is a typo in the script that im not seeing :?

Link to comment

In response to {RPX}Bomb (PimpGT)([email protected]), fag, STFU. U FUC|< i dont want your input, in response to all the others that helped me. Thanks. i got it. But, i am making another script which is technically done, but theres still some bugs... If any one has a !rank script (like !setrank Punk Hater < Rank Set. and !rank Punk < Punk's Rank - Hater.) that they can slide my way, that'd be great just ask me and ill pm you with my MSN MEssenger. thanks

Link to comment

Here you go punk

on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) 
 if ($3 == !setrank) {
   if ($4 == $null || $5 == $null) {
     mta.msg $1 $2 Error, !setrank 
   }
   elseif ($mta.name($1,%a) == Unknown) {
     mta.say $1 Error, ID Not Present!
   }
   else {
     writeini "mtarank.ini" rank $mta.name($1,%a) $5-
     mta.say $1 Setrank  $mta.name($1,%a)  $5-
   }
 }
 if ($3 == !rank) {
   if ($4 == $null) {
     mta.say $1 $mta.name($1,$2) rank - $readini "mtarank.ini" rank $mta.name($1,$2)
   }
   else {
     mta.say $1 $mta.name($1,%a) rank - $readini "mtarank.ini" rank $mta.name($1,%a)
   }
 }
}

commands:

!setrank

!rank or !rank

Link to comment
Could anyone make a Freezing script for me? (MTA: SA)

A script that lets everyone (Not just admins) freeze themselves with a simple command.. Like !f..

Much Appritiated.. :)

on *:SIGNAL:mta.command: {

if ($3 == !f) {

mta.freeze $! $2

}

if ($3 == !u) {

mta.unfreeze $! $2

}

}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...