here we go
on *:SIGNAL:mta.command:{
if ($3 == !speed) {
var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
if (%a == -1) mta.msg $1 $2 Error - Absent ID/Name
else !.timer 1 1 mta.speed $1 %a $mta.location($1,%a,x) $mta.location($1,%a,y) $mta.location($1,%a,z)
}
}
alias mta.speed {
var %x = $mta.location($1,$2,x),%y = $mta.location($1,$2,y),%z = $mta.location($1,$2,z),%a = $calc(%x - $3),%b = $calc(%y - $4),%c = $calc(%z - $5),%d = $round($sqrt($calc(%a * %a + %b * %b + %c * %c)),2)
else mta.say $1 $mta.name($1,$2) is travelling at $round($calc(%d * 2.236),2) Miles per hour
}
but cant say it'll always show your real speed cause of mta lags..