Post: How to use G_GivePlayerWeapon?
07-30-2014, 11:34 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); With reference to the BO2RPC and past threads, I was going to write a Script of weapon changes appropriate to 1.18 now.
But it freezes all means when you run it.
I want you to tell me if there is can be seen in this regard someone.

For example, code that he follows wrote's code to change to Ballista.

private void BO2_GiveWeapon(int client, int weaponIndex)
{
BO2_RPC_Code.BO2_RPC_Call(0x002A8364, 0x01780F28 + (client * 0x580Cool Man (aka Tustin), weaponIndex, 0, 0);
BO2_RPC_Code.BO2_RPC_Call(0x001E6838, 0x016B9F20 + (client * 0x31C), weaponIndex, 0, 0);
//BO2_RPC_Code.BO2_RPC_Call(0x2A8364, 0x1780F28, (client * 0x580Cool Man (aka Tustin), weaponIndex);

//0x2A8364 = BO2_Offsets.G_GivePlayerWeapon
//0x1780F28 = BO2_Offsets.G_Client
//0x1E6838 = BO2_Offsets.G_InitializeAmmo
//0x16B9F20 = BO2_Offsets.G_Entity
}

private void button1_Click(object sender, EventArgs e)
{
int client = dataGridView3.CurrentRow.Index;
string str = "ballista_mp";
int swag = Convert.ToInt32(str);
BO2_GiveWeapon(client, (int)swag);
}

It makes them freeze when you run this code.
To improve this, either used to change weapons How do I ... heck.
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo