Post: Release: G_GivePlayerWeapon + Switch Weapon [1.06]
12-22-2013, 09:43 AM #1
ZeiiKeN
Group 935
(adsbygoogle = window.adsbygoogle || []).push({}); Hi,

I decided to share with you the G_GivePlayerWeapon for a given weapon to the desired client.

I have this long and I use it at the time via another method until choco are sharing rpc call.

You first need to follow this tutorial : You must login or register to view this content.

Fonctionnal in 1.06

Sorry for my bad english I'm french.

C#:

    uint SV_Gamesendservercommand = 0x5A610C;
uint PlayerState = 0xF12C80;
uint G_GivePlayerWeapon = 0x28C05C;
uint Add_Ammo = 0x241310;

public void SV_GameSendServerCommand(int Client, string Command)
{
GHOSTS.RPC.Call(SV_Gamesendservercommand, Client, 0, Command);
}

private void GiveWeapon(int client, int weapon, int ammo, int akimbo)
{
GHOSTS.RPC.Call(G_GivePlayerWeapon, (uint)(PlayerState + (client * 0x3600)), weapon, akimbo);
GHOSTS.RPC.Call(Add_Ammo, (uint)(PlayerState + (client * 0x3600)), weapon, 0, ammo, 1);
GHOSTS.RPC.Call(SV_Gamesendservercommand, client, 0, "a \"" + weapon + "\"");
}


Example How to use it for client 0:

    GiveWeapon(0, 67, 999, 0);


the first zero corresponds to the client 0, for change by 1 the client 1 so on.
67 Corresponds to the minigun weapon, change the index by that of another weapon.
999 given ammo.
the last zero is the weapon akimbo, 0 no akimbo weapon 1 for akimbo weapon.

Weapons Index:

    67 = MiniGun
37 = Walking IMS
113 = Mortar Strike
95 = Laptop
90 = Iphone :p


Credits:

ZeiiKeN ( Offsets And Tutorial )
Choco ( You must login or register to view this content.)
Im A Hooker ( SwitchWeapon )
(adsbygoogle = window.adsbygoogle || []).push({});

The following 17 users say thank you to ZeiiKeN for this useful post:

192.168.1.1, RawDog2002, BaSs_HaXoR, EG6, ImSooCool, InfinityISB4CK, ItsMagiicsz, M-alShammary, Mango_Knife, Notorious, PussayPatrol, SeeNoKey, Txctical, x_action_x, Fatality
12-22-2013, 10:16 AM #2
xkoeckiiej
At least I can fight
nice thanks
12-22-2013, 11:30 AM #3
thanks man help ful me
12-22-2013, 12:07 PM #4
PussayPatrol
I'm a neat monster...
Originally posted by ZeiiKeN View Post
Hi,

I decided to share with you the G_GivePlayerWeapon for a given weapon to the desired client.

I have this long and I use it at the time via another method until choco are sharing rpc call.

You first need to follow this tutorial : You must login or register to view this content.

Fonctionnal in 1.06

Sorry for my bad english I'm french.

C#:

    uint SV_Gamesendservercommand = 0x5A610C;
uint PlayerState = 0xF12C80;
uint G_GivePlayerWeapon = 0x28C05C;
uint Add_Ammo = 0x241310;

public void SV_GameSendServerCommand(int Client, string Command)
{
GHOSTS.RPC.Call(SV_Gamesendservercommand, Client, 0, Command);
}

private void GiveWeapon(int client, int weapon, int ammo, int akimbo)
{
GHOSTS.RPC.Call(G_GivePlayerWeapon, (uint)(PlayerState + (client * 0x3600)), weapon, akimbo);
GHOSTS.RPC.Call(Add_Ammo, (uint)(PlayerState + (client * 0x3600)), weapon, 0, ammo, 1);
GHOSTS.RPC.Call(SV_Gamesendservercommand, client, 0, "a \"" + weapon + "\"");
}


Example How to use it for client 0:

    GiveWeapon(0, 67, 999, 0);


the first zero corresponds to the client 0, for change by 1 the client 1 so on.
67 Corresponds to the minigun weapon, change the index by that of another weapon.
999 given ammo.
the last zero is the weapon akimbo, 0 no akimbo weapon 1 for akimbo weapon.

Weapons Index:

    67 = MiniGun
37 = Walking IMS
113 = Mortar Strike
95 = Laptop
90 = Iphone :p


Credits:

ZeiiKeN ( Offsets And Tutorial )
Choco ( You must login or register to view this content. )


Solid fucken release mate, great job Claps
12-22-2013, 12:18 PM #5
Originally posted by ZeiiKeN View Post
Hi,

I decided to share with you the G_GivePlayerWeapon for a given weapon to the desired client.

I have this long and I use it at the time via another method until choco are sharing rpc call.

You first need to follow this tutorial : You must login or register to view this content.

Fonctionnal in 1.06

Sorry for my bad english I'm french.

C#:

    uint SV_Gamesendservercommand = 0x5A610C;
uint PlayerState = 0xF12C80;
uint G_GivePlayerWeapon = 0x28C05C;
uint Add_Ammo = 0x241310;

public void SV_GameSendServerCommand(int Client, string Command)
{
GHOSTS.RPC.Call(SV_Gamesendservercommand, Client, 0, Command);
}

private void GiveWeapon(int client, int weapon, int ammo, int akimbo)
{
GHOSTS.RPC.Call(G_GivePlayerWeapon, (uint)(PlayerState + (client * 0x3600)), weapon, akimbo);
GHOSTS.RPC.Call(Add_Ammo, (uint)(PlayerState + (client * 0x3600)), weapon, 0, ammo, 1);
GHOSTS.RPC.Call(SV_Gamesendservercommand, client, 0, "a \"" + weapon + "\"");
}


Example How to use it for client 0:

    GiveWeapon(0, 67, 999, 0);


the first zero corresponds to the client 0, for change by 1 the client 1 so on.
67 Corresponds to the minigun weapon, change the index by that of another weapon.
999 given ammo.
the last zero is the weapon akimbo, 0 no akimbo weapon 1 for akimbo weapon.

Weapons Index:

    67 = MiniGun
37 = Walking IMS
113 = Mortar Strike
95 = Laptop
90 = Iphone :p


Credits:

ZeiiKeN ( Offsets And Tutorial )
Choco ( You must login or register to view this content. )


Nice Job man been waiting for this for ages! Happy
12-22-2013, 01:10 PM #6
Mango_Knife
In my man cave
Originally posted by ZeiiKeN View Post
Hi,

I decided to share with you the G_GivePlayerWeapon for a given weapon to the desired client.

I have this long and I use it at the time via another method until choco are sharing rpc call.

You first need to follow this tutorial : You must login or register to view this content.

Fonctionnal in 1.06

Sorry for my bad english I'm french.

C#:

    uint SV_Gamesendservercommand = 0x5A610C;
uint PlayerState = 0xF12C80;
uint G_GivePlayerWeapon = 0x28C05C;
uint Add_Ammo = 0x241310;

public void SV_GameSendServerCommand(int Client, string Command)
{
GHOSTS.RPC.Call(SV_Gamesendservercommand, Client, 0, Command);
}

private void GiveWeapon(int client, int weapon, int ammo, int akimbo)
{
GHOSTS.RPC.Call(G_GivePlayerWeapon, (uint)(PlayerState + (client * 0x3600)), weapon, akimbo);
GHOSTS.RPC.Call(Add_Ammo, (uint)(PlayerState + (client * 0x3600)), weapon, 0, ammo, 1);
GHOSTS.RPC.Call(SV_Gamesendservercommand, client, 0, "a \"" + weapon + "\"");
}


Example How to use it for client 0:

    GiveWeapon(0, 67, 999, 0);


the first zero corresponds to the client 0, for change by 1 the client 1 so on.
67 Corresponds to the minigun weapon, change the index by that of another weapon.
999 given ammo.
the last zero is the weapon akimbo, 0 no akimbo weapon 1 for akimbo weapon.

Weapons Index:

    67 = MiniGun
37 = Walking IMS
113 = Mortar Strike
95 = Laptop
90 = Iphone :p


Credits:

ZeiiKeN ( Offsets And Tutorial )
Choco ( You must login or register to view this content. )


Keep release new stuff man
Just like Bo2 Old times...
12-22-2013, 03:11 PM #7
iDev
Grunt
use getWeaponIndex to make things easier.

The following user thanked iDev for this useful post:

SC58
12-22-2013, 07:44 PM #8
SC58
Former Staff
Originally posted by iDev View Post
use getWeaponIndex to make things easier.


ppl are noob they can only use what been used/released before No

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

therifboy
12-22-2013, 08:05 PM #9
Thanks for the share man!
12-22-2013, 08:06 PM #10
Originally posted by SC58 View Post
ppl are noob they can only use what been used/released before No


True. Only a few people make the scene go forward. Other people are just reposting useless things to get some rep.

The following user thanked therifboy for this useful post:

SC58

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo