Jump to content

MTA:MA Scripting


Harry

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.

Link to comment
  • Replies 357
  • Created
  • Last Reply

Top Posters In This Topic

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.

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

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

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

Link to comment

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.

Link to comment

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.

Link to comment

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

Link to comment

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

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

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

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...