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
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 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.
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 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.