Jump to content

MTA:MA Scripting


Harry

Recommended Posts

Posted

yeah the admin client can calculate the race state with the info sent now, and they will be able to tell when a race fninishes.

im also sending player pings to admin in the next server release, so ping kickers will be possible.

Proud member of Multi Theft Auto

Founder of Full Metal Jacket

mtateam5fq.png

fmjbar2hk.png

Creator of MTA:mA:GRS

http://www.mtafmj.com

http://www.full-fat.com

  • Replies 357
  • Created
  • Last Reply

Top Posters In This Topic

Posted
Will this work? (SA)

on *:SIGNAL:mta.command: { 
if ($3 == !up) { 
mta.say http://morfin.mine.nu:88 
} 

}

Fixed:

on *:SIGNAL:mta.command: { 
 if ($3 == !up) { 
   mta.text $! http://morfin.mine.nu:88 
 } 
}

can u add a way mtama can figure out if a player is AFK?

I made $mta.idle(), it returns the number of $ticks a player hasn't said anything.

"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
Will this work? (SA)

on *:SIGNAL:mta.command: { 
if ($3 == !up) { 
mta.say http://morfin.mine.nu:88 
} 

}

Fixed:

on *:SIGNAL:mta.command: { 
 if ($3 == !up) { 
   mta.text $! http://morfin.mine.nu:88 
 } 
}

can u add a way mtama can figure out if a player is AFK?

I made $mta.idle(), it returns the number of $ticks a player hasn't said anything.

"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 could theoretically get the server to send admin a packet when someone has actually been idle for say 5mins

that be great, becuase u can't go by mta.idle becuase its only counts when a player has said something. Not everyone speaks every 5 mins, specially when racing.

asherbert.png
Posted
i could theoretically get the server to send admin a packet when someone has actually been idle for say 5mins

that be great, becuase u can't go by mta.idle becuase its only counts when a player has said something. Not everyone speaks every 5 mins, specially when racing.

asherbert.png
Posted

Quick Question for expert scripters, why does this always produce a zero value?.....

on *:SIGNAL:mta.command: {

if ($3 == !skin) {

if ($mta.name($1,$2) != Unknown) {

mta.say $1 $mta.name($1,$2) - Skin: $readini(mta.data.ini, skin2, $mta.skin($1,$2))

else {

mta.say $1 Unknown: ID not present.

}

}

The "$readini(mta.data.ini, skin2, $mta.skin($1,$2))" should change from 0 -6 and use the Skin described in the mta.data.ini, which it reads, but only returns zero value... weirdly enough i cant figure it out. lemme know what you come up with.

Posted

Quick Question for expert scripters, why does this always produce a zero value?.....

on *:SIGNAL:mta.command: {

if ($3 == !skin) {

if ($mta.name($1,$2) != Unknown) {

mta.say $1 $mta.name($1,$2) - Skin: $readini(mta.data.ini, skin2, $mta.skin($1,$2))

else {

mta.say $1 Unknown: ID not present.

}

}

The "$readini(mta.data.ini, skin2, $mta.skin($1,$2))" should change from 0 -6 and use the Skin described in the mta.data.ini, which it reads, but only returns zero value... weirdly enough i cant figure it out. lemme know what you come up with.

Posted

Here you go

on *:SIGNAL:mta.command: {
 if ($3 == !skin) {
   if ($4 == $null) {
     mta.say $1 $mta.name($1,$2)  Skin: $mta.skin($1,$2).name
   }
   elseif ($mta.name($1,$4) == Unknown) {
     mta.say $1 Error, ID Not Present!
   }
   else {
     mta.say $1 $mta.name($1,$4)  Skin: $mta.skin($1,$4).name
   }
 }
}

Posted

Here you go

on *:SIGNAL:mta.command: {
 if ($3 == !skin) {
   if ($4 == $null) {
     mta.say $1 $mta.name($1,$2)  Skin: $mta.skin($1,$2).name
   }
   elseif ($mta.name($1,$4) == Unknown) {
     mta.say $1 Error, ID Not Present!
   }
   else {
     mta.say $1 $mta.name($1,$4)  Skin: $mta.skin($1,$4).name
   }
 }
}

Posted
Will this work? (SA)

on *:SIGNAL:mta.command: { 
if ($3 == !up) { 
mta.say http://morfin.mine.nu:88 
} 

}

Fixed:

on *:SIGNAL:mta.command: { 
 if ($3 == !up) { 
   mta.text $! http://morfin.mine.nu:88 
 } 
}

can u add a way mtama can figure out if a player is AFK?

I made $mta.idle(), it returns the number of $ticks a player hasn't said anything.

wont work

* /mta.text: insufficient parameters

Posted
Will this work? (SA)

on *:SIGNAL:mta.command: { 
if ($3 == !up) { 
mta.say http://morfin.mine.nu:88 
} 

}

Fixed:

on *:SIGNAL:mta.command: { 
 if ($3 == !up) { 
   mta.text $! http://morfin.mine.nu:88 
 } 
}

can u add a way mtama can figure out if a player is AFK?

I made $mta.idle(), it returns the number of $ticks a player hasn't said anything.

wont work

* /mta.text: insufficient parameters

Posted

There was just one mistake. Try it with:

on *:SIGNAL:mta.command: { 
 if ($3 == !up) { 
   mta.text $1 http://morfin.mine.nu:88 
 } 
}

A signature is a little text that can be added at the bottom of your posts.

It's limited to 500 characters on 5 line(s) and 1 image(s) with none larger than 150x650 pixels and for a maximum of 150Kb.

In your text, no more than 100 characters without space too. oh now you tell me.

Posted (edited)

on *:SIGNAL:mta.join: { 
mta.text $1 Welcome $mta.nick($1,$2) 
}

*/ EDIT thanks duff missed that

Edited by Guest
Posted

Good, thanks Jeremy :)

Although, Add the $1 parameter behind the mta.text and then it works a treat.

A signature is a little text that can be added at the bottom of your posts.

It's limited to 500 characters on 5 line(s) and 1 image(s) with none larger than 150x650 pixels and for a maximum of 150Kb.

In your text, no more than 100 characters without space too. oh now you tell me.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...