Jump to content

need help with script..


Guest [SK]RazR

Recommended Posts

hi all,

im busy with my own script for MTA:SA :D

i want add a command like '!ping' (to see the players ping)

i tried '$mta.ping($1,$zzz)' but it didn't work :? , does any one know what the right thing is?

(example)

i want a command like this:

[sK]RazR: !ping

[sK]RazR's ping is: **

thanks, RazR. 8)

Link to comment

1. you needa post in add-ons section

2 here's a good ping command script for ya:

on *:SIGNAL:mta.command:{
 if ($3 == !ping) {
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2)
   if (%a == -1) mta.pm $1 $2 Error - Absent ID
   else mta.text $1 $mta.nick($1,%a) $+ 's ping is: $mta.ping($1,%a) 
 }
}

Link to comment
  • Recently Browsing   0 members

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