In this tutorial i will show you how to change your weapon ingame.
You need to be host for it.
Things you need:
First we need to find the needed addresses. You have to find 3 addresses for the primary, secondary,... weapon.
How to find them: You can search for Changed Value in CE after you changed your primary weapon or you can search for Exact Value using the weaponlist by @LOLxFUN (https://www.mpgh.net/forum/showthread.php?t=479847). After you have found the 3 addresses you can also do this for your secondary weapon and if you start brain.exe you can also find the addresses for your third, fourth,... weapon.
Sorry for bad english.
//First we declare the needed addresses and create a struct.
private const int _visualPrimWeaponBaseAddress = the address you found;
private const int _ammoPrimWeaponBaseAddress = the address you found;
private const int _reloadPrimWeaponBaseAddress = the address you found;
private const int _weaponSize = 0x38EC;
private Weapon _primWeapons = new Weapon;
public int Visual;
public int Ammo;
public int Reload;
//Then we need to init the addresses for each player.
for(int i = 0; i < _primWeapons.Length; i++)
_primWeapons[i].Visual = _visualPrimWeaponBaseAddress + i *_weaponSize;
_primWeapons[i].Ammo = _ammoPrimWeaponBaseAddress + i *_weaponSize;
_primWeapons[i].Reload = _reloadPrimWeaponBaseAddress + i *_weaponSize;
//Now you can set the primary weapon of any player you want. For example i will give the player with the id 0 the weapon with number 0.