Need 2 helps please:
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) |
Re: Need 2 helps please:
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. |
Re: Need 2 helps please:
I need help as tutorial please.
PHP Code:
|
| All times are GMT -4. The time now is 12:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.