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, 08:32 PM #11
ZeiiKeN
Group 935
Originally posted by therifboy View Post
True. Only a few people make the scene go forward. Other people are just reposting useless things to get some rep.


Tu insinue quoi exactement ?, je poste se sujet afin d'obtenir de la réputation c'est sa ?

J'ai crée tout simplement se sujet car beaucoup de débutant mon démendant commant ouvrir le pc portable.

Je le dit en français comme en anglais si il le souhaite, la réputation je mens contre-fous ça fait bien longtemps que j'ai dépassé se cape, j'ai posté ceci tout simplement car mon esprit à moi et le partage et l'entraide.

Les gens peuvent like, dislike je ment fous.
12-22-2013, 08:40 PM #12
SC58
Former Staff
Originally posted by ZeiiKeN View Post
Tu insinue quoi exactement ?, je poste se sujet afin d'obtenir de la réputation c'est sa ?

J'ai crée tout simplement se sujet car beaucoup de débutant mon démendant commant ouvrir le pc portable.

Je le dit en français comme en anglais si il le souhaite, la réputation je mens contre-fous ça fait bien longtemps que j'ai dépassé se cape, j'ai posté ceci tout simplement car mon esprit à moi et le partage et l'entraide.

Les gens peuvent like, dislike je ment fous.


no one is hating where just saying post somthing worth while cause all anyone had to do is look at mw3 choco rpc and done it on ghost seeing all cods are the same to a point, but if weaponindex was in this it be better cause ppl would get the weapon index to have all weapon or the index on the name so ppl can cal weapons by the name, if you dont understand learn some 360 mods and u can do about anything as none of this is hard lol
12-23-2013, 08:39 AM #13
ZeiiKeN
Group 935
Originally posted by SC58 View Post
no one is hating where just saying post somthing worth while cause all anyone had to do is look at mw3 choco rpc and done it on ghost seeing all cods are the same to a point, but if weaponindex was in this it be better cause ppl would get the weapon index to have all weapon or the index on the name so ppl can cal weapons by the name, if you dont understand learn some 360 mods and u can do about anything as none of this is hard lol


I already knew this method from xbox.

I share this because many people have ask me, this is not a problem now I not sharing nothing

Then for G_GetWeaponIndexForName I let people look, I've everything I need.
12-24-2013, 02:19 PM #14
Originally posted by ZeiiKeN View Post
I already knew this method from xbox.

I share this because many people have ask me, this is not a problem now I not sharing nothing

Then for G_GetWeaponIndexForName I let people look, I've everything I need.


You mean the G_GetWeaponIndexForName already released by SC58 ?
12-24-2013, 03:54 PM #15
seb5594
Proud Former Admin
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. )


Not bad. Will be usefull for other ppl. Any Credits for Switchweapon?


You must login or register to view this content.


A list with all Weapon Ids you can add it to your post may be usefull for it Smile
You must login or register to view this content.
12-24-2013, 04:52 PM #16
ZeiiKeN
Group 935
Originally posted by seb5594 View Post
Not bad. Will be usefull for other ppl. Any Credits for Switchweapon?


You must login or register to view this content.


A list with all Weapon Ids you can add it to your post may be usefull for it Smile
You must login or register to view this content.


the method switchweapon and long known and I had also learned about xbox.
12-24-2013, 05:20 PM #17
seb5594
Proud Former Admin
Originally posted by ZeiiKeN View Post
the method switchweapon and long known and I had also learned about xbox.


since when? therif released it on se7ensins we found switch weapon by reversing G_SelectWeaponIndex.
12-24-2013, 05:34 PM #18
ZeiiKeN
Group 935
Originally posted by seb5594 View Post
since when? therif released it on se7ensins we found switch weapon by reversing G_SelectWeaponIndex.


Mw2 method You must login or register to view this content.
12-24-2013, 05:54 PM #19
SC58
Former Staff
Originally posted by ZeiiKeN View Post
Mw2 method You must login or register to view this content.


not to be a dick but ur not aloud to post other link to other forums on ngu :/

The following user thanked SC58 for this useful post:

INSAN3LY_D34TH

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo