Oli
Retired Staff-
Posts
1,993 -
Joined
-
Last visited
Everything posted by Oli
-
ok, this is a simple script that calculates the 3d coord vector between 2 players in vc. This script requires Admin+ to be active and will not function without it being on. To use simple put the aliases anywhere in the blank parts of your script and put the !distance part under mta.command. Here is the script for under mta.command: elseif (($3 == !distance) && ($mta.admin+($1) == $true)) { if ($4 != $null) { if ($5 != $null) { distance.calc.x $1- distance.calc.y $1- distance.calc.z $1- mta.say $1 $mta.name($1,$mta.getid($1,$4)) is $round($sqrt($calc($calc(%x * %x) + $calc(%y * %y) + $calc(%z * %z))),2) Metres from $mta.name($1,$mta.getid($1,$5)) } else { mta.say $1 Syntax: !distance } } else { mta.say $1 Syntax: !distance } } Here are the aliases it links to: alias distance.calc.x { if ($gettok($mta.location($1,$mta.getid($1,$4)),1,32) < $gettok($mta.location($1,$mta.getid($1,$5)),1,32)) { set %x $calc($gettok($mta.location($1,$mta.getid($1,$5)),1,32) - $gettok($mta.location($1,$mta.getid($1,$4)),1,32)) } else { set %x $calc($gettok($mta.location($1,$mta.getid($1,$4)),1,32) - $gettok($mta.location($1,$mta.getid($1,$5)),1,32)) } } alias distance.calc.y { if ($gettok($mta.location($1,$mta.getid($1,$4)),2,32) < $gettok($mta.location($1,$mta.getid($1,$5)),2,32)) { set %y $calc($gettok($mta.location($1,$mta.getid($1,$5)),2,32) - $gettok($mta.location($1,$mta.getid($1,$4)),2,32)) } else { set %y $calc($gettok($mta.location($1,$mta.getid($1,$4)),2,32) - $gettok($mta.location($1,$mta.getid($1,$5)),2,32)) } } alias distance.calc.z { if ($gettok($mta.location($1,$mta.getid($1,$4)),3,32) < $gettok($mta.location($1,$mta.getid($1,$5)),3,32)) { set %z $calc($gettok($mta.location($1,$mta.getid($1,$5)),3,32) - $gettok($mta.location($1,$mta.getid($1,$4)),3,32)) } else { set %z $calc($gettok($mta.location($1,$mta.getid($1,$4)),3,32) - $gettok($mta.location($1,$mta.getid($1,$5)),3,32)) } }
-
its ok ive worked it out now, its in metres got a few FMJ's together and did some tests so now my !distance script works great
-
sorry im having real trouble understanding you, could you explain a bit more please, or can anyone else get this?
-
tell me about it ron, tell me about it
-
yes even I cant play it any more, its killing my connection when i do It does appear its killing the popularity though, to delay much more would be foolish to say the least.
-
OK, this is something I need to know for several scripts im making.. what is the unit of distance for the coord system in MTA admin+? IE: when i return $mta.location($1,$2) on myself it will return a x, y and z coordinate, but i need to know in what units they are (ie meters, feet etc)
-
lol yeah soz, must have forgotten how to read last night
-
hmm could be he didnt uninstall 0.3 thinking about it
-
just reinstall VC, your save games wont be deleted as they are saved in a file in "MY Documents" so u can always back them up. You should be fine then
-
Download the All Seeing Eye, use that to connect to MTA servers. http://www.udpsoft.com/eye/download/new ... taller.exe Also please dont make more than 1 topic for simple things like this
-
To get MTA:mA working: http://forum.mtavc.com/viewtopic.php?t=7855 In game Admin System: http://forum.mtavc.com/viewtopic.php?t=8788
-
i think the word ure looking for is... anyway...
-
so much for making up then
-
lol OC refused to fight us cos "they wernt ready"
-
lol cant say i know the guy very well.. but he seems good with an m60
-
FMJ newest member: [FMJ]Seor.. the first admission test under 0.4 went very well . Spectator mode was very cool tojudge the tests with Anyway he is on our long range unit.
-
lmao nick, nice idea, ill put it together
-
yeah i remember that bump, one time i shot ure car up at the cons site and u went nuts lol, i guessed u were using something like that then
-
lol u 2 kiss and make up
-
nah a once in once out policy is fine with me, my guys need practice with it whether they like it or not heh
-
holy shit i just broke my back from laughing too much :D:D
-
dont worry, i personally dont have anything against heli kills, we'll fight u with or without em, but if my members ask for a non heli kill war id expect u to honour that as ill do heli kill wars for u. Simple gratitude
-
YAY 0.1.. FMJ have occassional 0.1 nights too, wicked fun, even though its inferior in every way its just so classic.. so this time a year ago
-
yeah i even gave em i nice advert on the mta euleague site front page lol: http://www.mta-euleague.com hehehe
-
Script updated to v1.4 on my server, its still on v1.3 on aerons server at present. New main feature is the Nickserv can be turned on or off from the /menu now. (Feature requested by [FDX]Warzone) I have also chanegd the dialog title and fixed some errors that were in aerons version (Aeron i need to speak with u about that) Download: http://www.mta-fmj.com/mtama.mrc cheers EDIT: checkping error fixed (stupid dialog )
