ItsMods
Preview Teleport plugin - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Preview Teleport plugin (/Thread-Preview-Teleport-plugin.html)

Pages: 1 2


Teleport plugin - [Z00MBY] Alex - 07-24-2012



Credits:
Litgar: Creator


RE: Teleport plugin - DidUknowiPwn - 07-24-2012

That's awesome...


RE: Teleport plugin - JariZ - 07-24-2012

Cool, nice job!


RE: Teleport plugin - surtek - 07-24-2012

The good old zombie flags. Goodjob. Repped.


RE: Teleport plugin - Sgt_Rouch - 07-27-2012

and you can link to download the plugin


RE: Teleport plugin - d0h! - 07-27-2012

@ everyone! ENGLISH only

http://www.itsmods.com/forum/Thread-Release-Teleporter.html


RE: Teleport plugin - Nekochan - 07-27-2012

(07-27-2012, 12:22)d0h! Wrote: @ everyone! ENGLISH only

http://www.itsmods.com/forum/Thread-Release-Teleporter.html

Okay

Nah, that teleporter is better. It has flags.
Maybe it'll very useful for bunkers etc ( @Killingdyl "care package is cool" )
As @surtek said
"The old good teleporter flags"


RE: Teleport plugin - d0h! - 07-27-2012

i thought posting the link will at least give him something since this is a preview only thread


RE: Teleport plugin - Nekochan - 07-27-2012

(07-27-2012, 12:45)d0h! Wrote: i thought posting the link will at least give him something since this is a preview only thread

oh, okay


RE: Teleport plugin - archit - 07-27-2012

This should do
Thanks to @master131 for Distance code
Code:
public static double Distance(Vector vec1, Vector vec2) { return Math.Sqrt(Math.Pow(vec1.X - vec2.X, 2) + Math.Pow(vec1.Y - vec2.Y, 2) + Math.Pow(vec1.Z - vec2.Z, 2)); } public override void OnMapChange() { Entity flag = SpawnModel("script_brushmodel", "prop_flag_neutral", new Vector(1343.3f, 1742.7f, -254.8f)); // change with your flag co-ordinates } public override void OnAddonFrame() { if (GetClients() != null) { foreach (ServerClient Client in GetClients()) { if (Distance(new Vector(Client.OriginX, Client.OriginY, Client.OriginZ), new Vector(1343.3f, 1742.7f, -254.8f)) <= 50)//same as flag { Client.OriginX = 1322f;//where to teleport Client.OriginY = 1455.7f; Client.OriginZ=-255f; } } } }