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
01-18-2015, 12:08 PM #29
VezahMoDz
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 });
}


Well the thing is you cant call this Function without Reversing if you dont want to Freeze as this Function includes Scr_Add Functions which are only supposed to be used within the GSC Thread^^

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo