Block weapon switch
Hello, I'm trying to block weapon from being "holstered". I tried with member bAutoWepSwitch and superced Ham_Item_Deploy/Ham_Item_Holster, but none of them work. Any idea?
|
Re: Block weapon switch
You can always do the old ugly trick with CurWeapon + engclient_cmd("weapon_").
I'm not sure if there is a better way. |
Re: Block weapon switch
What I did was work with player pev->weapons. They still can switch weapon if open console and write weapon_*, but this can be fixed if I return PLUGIN_HANDLED.
|
Re: Block weapon switch
Check my jailbreak_main plugin i am using ham_item_can_deploy_pre to remove the weapon.
PHP Code:
|
Re: Block weapon switch
Actually I'm trying to avoid remove weapons from player, but thank you anyway.
|
Re: Block weapon switch
Quote:
|
Re: Block weapon switch
Did you try to call (ExecuteHam) Ham_Item_Deploy( your_weapon_ent ) in Ham_Item_Holster( your_weapon_ent ) POST forward ?
|
| All times are GMT -4. The time now is 07:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.