Raised This Month: $ Target: $400
 0% 

Solved Set equiped weapon glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-03-2018 , 09:48   Re: Set equiped weapon glow
Reply With Quote #6

its very easy. register clcmd and in function get players weapon (first check if is alive), to get players' weapon you need privatedata offset of active item (i think its 373) and get it
Code:
#define m_pActiveItem 373

new Weapon = get_pdata_cbase(id, m_pActiveItem);
Bam! now u can set weapons rendering using fm_set_rendering or such thing.

[PS: I dont think if this will work lul]
[Cause weapon has not its model and you see players weaponmodel which is players variable and that means you must set rendering on player]
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-03-2018 at 09:50.
Ghosted is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode