Jump to content

Some help please


Mophead

Recommended Posts

Posted

you mean post more examples of MTA commands?

ok ill do one

/me

puts your talk box into third person

ie.>>> /me sits on Mike = "Paul527 sits on Mike"

theres one

Posted

here u go

on *:SIGNAL:mta.command:{
 if ($3 == !in) {
   var %in = $mta.ingame($1)
   mta.say $1 There $iif(%in == 1,is,are) %in $iif(%in == 1,player,players) in game.
 }
 elseif ($3 == !out) {
   var %out = $mta.outgame($1)
   mta.say $1 There $iif(%in == 1,is,are) %out $iif(%in == 1,player,players) out game.
 }
 elseif ($3 == !list) {
   if ($4 == in) {
     var %aa = 0,%in
     while (%aa <= $mta.maxplayers($1)) {
       if ($mta.status($1,%aa) == 2) {
         if (!%in) %in = $mta.name($1,%aa)
         else %in = %in $+ , $mta.name($1,%aa)
       }
       !inc %aa
     }
     mta.say $1 $iif(%in,Players In-game: %in,There are currently no players In-game)
   }
   elseif ($4 == out) {
     var %aa = 0,%out
     while (%aa <= $mta.maxplayers($1)) {
       if ($mta.status($1,%aa) == 1) {
         if (!%out) %out = $mta.name($1,%aa)
         else %out = %out $+ , $mta.name($1,%aa)
       }
       !inc %aa
     }
     mta.say $1 $iif(%out,Players Out-game: %out,There are currently no players Out-game)
   }
 }
}
alias mta.ingame {
 var %a = 0,%b = 0
 while (%a <= $mta.maxplayers($1)) { 
   if ($mta.status($1,%a) == 2) %b = %b + 1
   !inc %a
 }
 !return %b
}
alias mta.outgame { 
 var %a = 0,%b = 0 
 while (%a <= $mta.maxplayers($1)) { 
   if ($mta.status($1,%a) == 1) %b = %b + 1
   !inc %a
 }
 !return %b
}

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

Posted

Thanks Master, also could someone help me with my current RPG,

    }
   else {
     mta.say $1 $mta.name($1,$2) bought the $mta.vehicle($1,$2) for $ $+ 15000!
     !writeini RPG2.ini car $mta.name($1,$2) $mta.vehicle($1,$2)
     !writeini RPG2.ini status $mta.vehicle($1,$2) o
     !writeini RPG2.ini cash $mta.name($1,$2) $calc($readini(RPG2.ini,$mta.name($1,$2),cash)) - 15000)

It says [XW]MoPhEaD bought the 34 for $15000!, how do i make it say the vehicle name?

englishmop.jpg
Posted
Thanks Master, also could someone help me with my current RPG,

    }
   else {
     mta.say $1 $mta.name($1,$2) bought the $mta.vehicle($1,$2) for $ $+ 15000!
     !writeini RPG2.ini car $mta.name($1,$2) $mta.vehicle($1,$2)
     !writeini RPG2.ini status $mta.vehicle($1,$2) o
     !writeini RPG2.ini cash $mta.name($1,$2) $calc($readini(RPG2.ini,$mta.name($1,$2),cash)) - 15000)

It says [XW]MoPhEaD bought the 34 for $15000!, how do i make it say the vehicle name?

U sure thats urs ? i think its from jax's second edition of rpg script.

Bf2 Server:128.233.155.200:16567 Awesome Poll Must Vote Else Regret all your life

MTA:- 216.86.149.93:2003 DM GTA VC on Quad Xeon PC. Also 216.55.163.195:2003-RPG+DM

Hosting @ 1.5$ per month 1.2gb space 22g bw at $4.50 : http://www.a1whs.com

logo5.jpg

  • Recently Browsing   0 members

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