Jump to content

MTA:MA Scripting


Harry

Recommended Posts

  • Replies 357
  • Created
  • Last Reply

Top Posters In This Topic

Posted
You could just get a slap for 20 each time you get a 'fix', drugs kill you in the end after all.

OMGAD HI MATT

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted
You could just get a slap for 20 each time you get a 'fix', drugs kill you in the end after all.

What an idea! :lol:

Thx!

Aeron pls help! :)

I'm little, hairy and blind, but if you are a NOOB I kick your fat, hairless ass! :lol:

Posted
You could just get a slap for 20 each time you get a 'fix', drugs kill you in the end after all.

What an idea! :lol:

Thx!

Aeron pls help! :)

can't be done in current versions

asherbert.png
Posted
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

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • 2 weeks later...
Posted

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)
   }

xe6za.gif

banner.gif

Best game server hosting. America East&West Coast, and many European locations available.

Click on the above link to check us out!

Posted

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?

Posted
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.

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted
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

}

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted
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

}

}

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted
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 :?

MTA Server Hosting (pm me for details!)

VCES / SAES Clan Member - VCES.net

Posted

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

Posted

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

Posted (edited)

Hmm, this is for mta:ma for SA...You know y it wont read the pms? Like, i type it and nothing... :S

REMOVED

Thx if u can help. Cya!

Edited by Guest

xe6za.gif

banner.gif

Best game server hosting. America East&West Coast, and many European locations available.

Click on the above link to check us out!

Posted

admins can't read invalid private msg such as to player 'login' and admins can't msg back

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted

Alright, Thx.

xe6za.gif

banner.gif

Best game server hosting. America East&West Coast, and many European locations available.

Click on the above link to check us out!

Posted

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.. :)

0002x10d.gif
Posted
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

}

}

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...