Raised This Month: $ Target: $400
 0% 

Need 2 helps please:


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-23-2011 , 04:34   Re: Need 2 helps please:
Reply With Quote #2

1. Register event Health with filter "1<20" or "1<=20"

2. Hook Ham_Weapon_Deploy as post, retrieve player index using get_pdata_cbase with ent index and m_pPlayer offset, retrieve weapon type using either cs_get_weapon_id or get_pdata_int with ent index and m_iId offset.
Set player pev_viewmodel2 (v_) and pev_weaponmodel2 (v_).
If you need all weapons, you have to register all weapons classes, if you only want knife for example, you can only register weapon_knife class and then you won't have to retrieve weapon type.
Don't forget to precache models.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-23-2011 at 04:35.
ConnorMcLeod 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:10.


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