Changing p_ model if no weapon is holding
Hello there. I need a help with changing p_ model of a player, if there is no weapon in his hands.
|
Re: Changing p_ model if no weapon is holding
Bump
|
Re: Changing p_ model if no weapon is holding
Depending on the MOD, you can hook "CurWeapon" and check if they have no weapon. (Faster)
Code:
|
Re: Changing p_ model if no weapon is holding
I don't know if this works. If it works then do I need to precache a default model/sound?
PHP Code:
EDIT2: Fixed code |
Re: Changing p_ model if no weapon is holding
"1=0" is sometime sent after a "1=1" is sent, so you could switch to ak47 and have "1=1" + "2=28", but then get a "1=0" with another weapon id, so your idea is bad.
You should try register_event("CurWeapon", "Even_CurWeapon_Strip", "be", "1=0", "2=0", "3=0") |
| All times are GMT -4. The time now is 08:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.