Raised This Month: $51 Target: $400
 12% 

Need 2 helps please:


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 12-23-2011 , 04:06   Need 2 helps please:
Reply With Quote #1

1. I want to know how to check if the players is lower that 20(or any value).

2. How to set view model (knife model "p_" and "v_" models)
__________________
Isaac999 is offline
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
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 12-23-2011 , 04:46   Re: Need 2 helps please:
Reply With Quote #3

I need help as tutorial please.

PHP Code:
 Your code please 
__________________
Isaac999 is offline
Old 12-26-2011, 10:07
Isaac999
This message has been deleted by ConnorMcLeod. Reason: Read rules.
Reply



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 15:56.


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