Harry

MTA:MA Scripting

Recommended Posts

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.

Share this post


Link to post

Will this work? (SA)

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

}

Share this post


Link to post

Will this work? (SA)

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

}

Share this post


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

ill think about it

Share this post


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

ill think about it

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post

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

*/ EDIT thanks duff missed that

Edited by Guest

Share this post


Link to post

Can someone code me a script like this:

When a player dies it says

$user ate the metal

Share this post


Link to post

on *:SIGNAL:mta.kill: {

mta.say $1 $mta.name($1,$2) ate the metal!

}

i think thats all you need, check with others first.

Share this post


Link to post

  • Recently Browsing   0 members

    No registered users viewing this page.