Post: [1.04][Release][C#]Script 1.04 , Wepons , Clone , Set model , Teleport ZONE And other
11-17-2014, 01:26 AM #1
LBK
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU People Happy

Today Me , and GsRClans , We have decided to release the giveweapons + the dump index Weapons !
And release , a Set model , Teleport Zone , And other Script ! Happy

Threads Updatate for 1.04 !


Give Wepons :

Code GiveWepons !
    
#region Give Wepons Index
public static void G_GivePlayerWeapon(int Client, int Weapon, int ammo)
{
RPC.Call(0x36A6A0, 0x1950880+ 0x4180 * (uint)Client, Weapon, 0);
RPC.Call(0x3101C0, 0x1950880+ (Client * 0x4180), Weapon, 0, ammo, 1);
}
#endregion



How tu use ?
    
G_GivePlayerWeapon(0, 1 , 999);//0 for Client || 1 For Index || 999 for Ammo



Set Model Player !


    
Public static void SetModel(Int Client , string Models)
{
RPC.Call(0x365738 , 0x1860880+ 0x280 * (uint)Client, Model);
}


How To use ? :

    
SetModel(0, "orbital_carepackage_pod_01_ai"); // 0 For client || Model



Clone Player : Thanks xReaper !

    
public static void ClonePlayer(int clientIndex)
{
RPC.Call(0x303C68, new object[] { clientIndex });
}


How To use ? :

    
ClonePlayer(0);// 0 for Player



Set Blur :

    
public static void setBlur(Int32 transitionTime)
{
SV_GameSendServerCommand(0, "i _ " + transitionTime + " ");
}


How to use ? :
    
RPC.setBlur(20);//20 For Blur !



Set Vision :

    
public static void SetVision(int clientIndex, string Vision)
{
SV_GameSendServerCommand(clientIndex, "J "" + Vision + "" ");
}


How To use ? :

    
RPC.SetVision(0, "Name vision ");



Teleport Flags ! : 1.03 future Update

to put in a timer ! :
    
for (int i = 0; i < 12; i++)
{
float[] test = getPlayerOrigin(i);
int X = (int)test[0];
int Y = (int)test[1];
int Z = (int)test[2];
if (X == (int)X0 || Y == (int)Y0 || X == ((int)X0 + 1) || Y == ((int)Y0 + 1) || X == ((int)X0 - 1) || Y == ((int)Y0 - 1) || X == ((int)X0 + 2) || Y == ((int)Y0 + 2) || X == ((int)X0 - 2) || Y == ((int)Y0 - 3) || X == ((int)X0 + 3) || Y == ((int)Y0 + 3) || X == ((int)X0 - 3) || Y == ((int)Y0 - 3))
{
if (Z < 500)
{
WriteSingle(0x01905978 + ((uint)i * 0x4180), new float[] { XT, YT, ZT });
}
}
else if (X == (int)X1 || Y == (int)Y1 || X == ((int)X1 + 1) || Y == ((int)Y1 + 1) || X == ((int)X1 - 1) || Y == ((int)Y1 - 1) || X == ((int)X1 + 2) || Y == ((int)Y1 + 2) || X == ((int)X1 - 2) || Y == ((int)Y1 - 2) || X == ((int)X1 + 3) || Y == ((int)Y1 + 3) || X == ((int)X1 - 3) || Y == ((int)Y1 - 3))
{
if (Z > 999 && Z < 1020)
{
WriteSingle(0x01905978 + ((uint)i * 0x4180), new float[] { XR, YR, ZR });
}
}
}

To put in a Public / Private ! :
    
public int X0;
public int Y0;
public int Z0;
public int X1;
public int Y1;
public int Z1;
int XT;
int YT;
int ZT;
int XR;
int YR;
int ZR;
bool[] gm = new bool[17];

To put in a Button For Start !! :
    
float[] Player = getPlayerOrigin(0);
int X = (int)Player[0];
int Y = (int)Player[1];
float[] FortTele = { Player[0], Player[1], 1010 };
float[] ReturnOrigin = { X + 80, Y - 70, 1000 };
X0 = (int)Player[0];
Y0 = (int)Player[1];
X1 = (int)X + 80;
Y1 = (int)Y - 70;
XT = (int)FortTele[0];
YT = (int)FortTele[1];
ZT = (int)FortTele[2];
XR = (int)Player[0] + 6;
YR = (int)Player[1];
ZR = (int)Player[2];

spawnEntity("orbital_carepackage_pod_01_ai", Player, new float[] { 0, 0, 0 });
Thread.Sleep(100);

spawnEntity("orbital_carepackage_pod_01_ai", ReturnOrigin, new float[] { 0, 0, 0 });
Thread.Sleep(100);

iPrintlnBold(-1, "Teleport Zone By Lebigkilleur And GsRClans , ^3Thans OLDSCHOOLMODZHD ! ");
Thread.Sleep(50);
teleport.Enabled = true;//Timer a Function
teleport.Start();//Timer a Function


For use all : You need a : Spawn Entity : Thanks xReaperv !! And RPC , Thans Shark , and SC58 !
Credit For Function Teleport Zone ? : Me And Gsr Clans for Adapted on AW ! But most credits go to OLDSCHOOLMODZHD For function on BO2 !

Link for DUMP Index !!

You must login or register to view this content.

For Model list ---> Go : You must login or register to view this content.
And choice a "xmodels.txt" !

Link for Dump Vision :

You must login or register to view this content.

Good coding you ! :p

Credits ? :

Me and GsRClans : For Function + DUMP INDEX !
Aerosoul : for his Asset Dump !
Rawdog : for vision on tool
OLDSCHOOLMODZHD , For Function teleport BO2 !
xReaper : For Adresse , Clone Player !
Last edited by LBK ; 11-20-2014 at 10:06 PM. Reason: New Code

The following 6 users say thank you to LBK for this useful post:

Antonio96C, Boliberrys, gsrclans, NotALegitPlayer, Thirst, xbold

The following user groaned LBK for this awful post:

OLDSCHOOLMODZHD
11-17-2014, 01:28 AM #2
It did work well <3

The following user thanked gsrclans for this useful post:

LBK
11-17-2014, 02:59 AM #3
Originally posted by Lebigkilleur View Post
Hi NGU People Happy

Today Me , and GsRClans , We have decided to release the giveweapons + the dump index Weapons !
And release , a Set model Smile


Give Wepons :

Code GiveWepons !
    
#region Give Wepons Index
public static void G_GivePlayerWeapon(int Client, int Weapon, int ammo)
{
RPC.Call(0x3670E8, 0x1905900 + 0x4180 * (uint)Client, Weapon, 0);
RPC.Call(0x30D198, 0x1905900 + (Client * 0x4180), Weapon, 0, ammo, 1);
}
#endregion



How tu use ?
    
G_GivePlayerWeapon(0, 1 , 999);//0 for Client || 1 For Index || 999 for Ammo



Link for DUMP Index !!

You must login or register to view this content.


Set Model Player !


    
public static void SetModel(int Client, string Model)
{
RPC.Call(0x36241C, 0x1815900 + 0x280 * (uint)Client, Model);
}


How To use ? :

    
SetModel(0, "orbital_carepackage_pod_01_ai"); // 0 For client || Model


For Model list ---> Go : You must login or register to view this content.
And choice a "xmodels.txt" !

Good coding you ! :p

Credits ? :

Me and GsRClans : For Function + DUMP INDEX !
Aerosoul : for his Asset Dump !
xReaper : For Adresse !


Nice release man Smile Definitely will use ^^
11-17-2014, 03:07 AM #4
uh...
    
public static uint G_Client(int clientIndex) { return 0x1905300 + ((uint)clientIndex * 0x4180 ); }
public static uint G_Entity(int clientIndex) { return 0x1815300 + ((uint)clientIndex * 0x280); }

public static void SV_GameSendServerCommand(Int32 Client, String Command)
{
RPC.Call(0x42A09C, new object[] { Client, 1, Command });
}

public static Int32 BG_FindWeaponIndexForName(String Weapon)
{
RPC.Call(0x1662DC, new object[] { 0x1100000, Weapon });
return Lib.ReadInt32(0x1100000);
}

public static void GiveWeapon(Int32 Client, String Weapon, int Akimbo)
{
Int32 Index = BG_FindWeaponIndexForName(Weapon);
RPC.Call(0x3670E8, new object[] { G_Client(Client), Weapon, Akimbo });
RPC.Call(0x30D198, new object[] { G_Entity(Client), Weapon, 0, 9999, 1 });
SV_GameSendServerCommand(Client, "a \"" + Index + "\"");
}

The following user thanked OLDSCHOOLMODZHD for this useful post:

Smooth
11-17-2014, 03:18 AM #5
Smooth
< ^ > < ^ >
Originally posted by OLDSCHOOLMODZHD View Post
uh...
    
public static uint G_Client(int clientIndex) { return 0x1905300 + ((uint)clientIndex * 0x4180 ); }
public static uint G_Entity(int clientIndex) { return 0x1815300 + ((uint)clientIndex * 0x280); }

public static void SV_GameSendServerCommand(Int32 Client, String Command)
{
RPC.Call(0x42A09C, new object[] { Client, 1, Command });
}

public static Int32 BG_FindWeaponIndexForName(String Weapon)
{
RPC.Call(0x1662DC, new object[] { 0x1100000, Weapon });
return Lib.ReadInt32(0x1100000);
}

public static void GiveWeapon(Int32 Client, String Weapon, int Akimbo)
{
Int32 Index = BG_FindWeaponIndexForName(Weapon);
RPC.Call(0x3670E8, new object[] { G_Client(Client), Weapon, Akimbo });
RPC.Call(0x30D198, new object[] { G_Entity(Client), Weapon, 0, 9999, 1 });
SV_GameSendServerCommand(Client, "a \"" + Index + "\"");
}


#rekt

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

bymelasuda, OLDSCHOOLMODZHD
11-17-2014, 04:15 AM #6
LBK
Little One
Originally posted by OLDSCHOOLMODZHD View Post
uh...
    
public static uint G_Client(int clientIndex) { return 0x1905300 + ((uint)clientIndex * 0x4180 ); }
public static uint G_Entity(int clientIndex) { return 0x1815300 + ((uint)clientIndex * 0x280); }

public static void SV_GameSendServerCommand(Int32 Client, String Command)
{
RPC.Call(0x42A09C, new object[] { Client, 1, Command });
}

public static Int32 BG_FindWeaponIndexForName(String Weapon)
{
RPC.Call(0x1662DC, new object[] { 0x1100000, Weapon });
return Lib.ReadInt32(0x1100000);
}

public static void GiveWeapon(Int32 Client, String Weapon, int Akimbo)
{
Int32 Index = BG_FindWeaponIndexForName(Weapon);
RPC.Call(0x3670E8, new object[] { G_Client(Client), Weapon, Akimbo });
RPC.Call(0x30D198, new object[] { G_Entity(Client), Weapon, 0, 9999, 1 });
SV_GameSendServerCommand(Client, "a \"" + Index + "\"");
}


I have edited , sorry for code so bad Winky Winky
11-17-2014, 12:43 PM #7
xReaperv3
Bounty hunter
If you change your Player Model, it would be funny when you're cloning urself no? :P

    
public static void ClonePlayer(int clientIndex)
{
RPC.Call(0x300C40, new object[] { clientIndex });
}
11-17-2014, 02:53 PM #8
Originally posted by xReaperv3 View Post
If you change your Player Model, it would be funny when you're cloning urself no? :P

    
public static void ClonePlayer(int clientIndex)
{
RPC.Call(0x300C40, new object[] { clientIndex });
}


Nice , Good Job ! :wub:
11-17-2014, 04:37 PM #9
Swiss
Do a barrel roll!
nvm..
Last edited by Swiss ; 11-17-2014 at 04:40 PM.
11-17-2014, 05:34 PM #10
RGaming
Do a barrel roll!
Originally posted by xReaperv3 View Post
If you change your Player Model, it would be funny when you're cloning urself no? :P

    
public static void ClonePlayer(int clientIndex)
{
RPC.Call(0x300C40, new object[] { clientIndex });
}


It freeze when you quit the game ^^

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo