Post: C# | Teleport | Save & Load Location | Teleport Everyone | Easy af
11-17-2014, 06:40 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Hey NGU .
Some people asked me for this. So here we go . And i know its easy af ( i dont understand why some people donknow how to do this .. )
& i post this cuz , people are still using mango_knifes way .. and he saves the bytes in a txt file haha
I Made this a few months ago .. so it should be easy 2 understand for everyone Happy
So Lets start ..

Things that you will need :
G_Client

public static UInt32 G_Client(int clientIndex, UInt32 Mod)
{
return (Adresses.G_Client + (UInt32)Mod) + ((UInt32)clientIndex * Adresses.ClientIndex);
}
Pretty easy to update xD
class Adresses
{
public static uint
G_Client = 0x1905900,
ClientOrigin = 0x78,
ClientIndex = 0x4180;
}




Get Location :


public static float[] getPlayerPosition(int clientIndex)
{
float[] Position = Lib.ReadSingle(G_Client(clientIndex, Offsets.ClientOrigin), 3);
return Position;
}




Teleport Client / All Clients to Saved

public static void LoadPosition(Int32 client)
{
if (client == -1)
{
for (Int32 i = 1; i < 12; i++)
{
SetPlayerPosition(i, saved);
iPrintln(i, "Everyone hase been Teleported to Saved Position");
}
}
else
{
SetPlayerPosition(client, saved);
iPrintln(client, "Position : ^2Loaded");
}
}

public static void SetPlayerPosition(int clientIndex, float[] Pos)
{
Lib.WriteSingle(G_Client(clientIndex, Adresses.ClientOrigin), Pos);
}




Save Location


public static float[] saved;
public static void SaveLocation(Int32 client)
{
saved = getPlayerPosition(client);
iPrintln(client, "Your Position has been ^2Saved");
}


Everone to Host


Call it like this :
EveryoneToHost(client, -1);

public static float[] HostPos;
public static void EveryoneToHost(Int32 Host, Int32 clients)
{
HostPos = getPlayerPosition(Host);
if (clients == -1)
{
for (Int32 i = 1; i < 12; i++)
{
SetPlayerPosition(i, HostPos);
iPrintln(i, "Everyone hase been Teleported to Saved Position");
}
}
}

You'll need this Lib too (Thanks to Shark)
You must login or register to view this content.

Thats it .
Last edited by FusionIsDaName ; 11-18-2014 at 02:30 PM.

The following 3 users say thank you to FusionIsDaName for this useful post:

Boliberrys, bymelasuda, xReaperv3
11-17-2014, 09:49 PM #2
Boliberrys
^^ Sexy ^^
Thanks for the Release!
Originally posted by xFusion View Post
Hey NGU .
Some people asked me for this. So here we go . And i know its easy af ( i dont understand why some people donknow how to do this .. )
So Lets start ..

Things that you will need :
G_Client

public static UInt32 G_Client(int clientIndex, UInt32 Mod)
{
return (Adresses.G_Client + (UInt32)Mod) + ((UInt32)clientIndex * Adresses.ClientIndex);
}
Pretty easy to update xD
class Adresses
{
public static uint
G_Client = 0x1905900,
ClientOrigin = 0x78,
ClientIndex = 0x4180;
}




Get Location :


public static float[] getPlayerPosition(int clientIndex)
{
float[] Position = Lib.ReadSingle(G_Client(clientIndex, Offsets.ClientOrigin), 3);
return Position;
}




Teleport Client / All Clients to Saved

public static void LoadPosition(Int32 client)
{
if (client == -1)
{
for (Int32 i = 1; i < 12; i++)
{
SetPlayerPosition(i, saved);
iPrintln(i, "Everyone hase been Teleported to Saved Position");
}
}
else
{
SetPlayerPosition(client, saved);
iPrintln(client, "Position : ^2Loaded");
}
}

public static void SetPlayerPosition(int clientIndex, float[] Pos)
{
Lib.WriteSingle(G_Client(clientIndex, Adresses.ClientOrigin), Pos);
}




Save Location


public static float[] saved;
public static void SaveLocation(Int32 client)
{
saved = getPlayerPosition(client);
iPrintln(client, "Your Position has been ^2Saved");
}


Everone to Host


Call it like this :
EveryoneToHost(client, -1);

public static float[] HostPos;
public static void EveryoneToHost(Int32 Host, Int32 clients)
{
HostPos = getPlayerPosition(Host);
if (clients == -1)
{
for (Int32 i = 1; i < 12; i++)
{
SetPlayerPosition(i, HostPos);
iPrintln(i, "Everyone hase been Teleported to Saved Position");
}
}
}

You'll need this Lib too (Thanks to Shark)
You must login or register to view this content.

Thats it .
11-17-2014, 10:01 PM #3
This isn't common knowledge? :O

The following 2 users say thank you to OLDSCHOOLMODZHD for this useful post:

Jannik007, xCSBKx

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo