Raised This Month: $32 Target: $400
 8% 

Block deploy weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-12-2013 , 20:05   Block deploy weapons
Reply With Quote #1

Which is the best way to block deploy weapon (Ham_Item_Deploy) ?
__________________
alan_el_more is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-13-2013 , 02:28   Re: Block deploy weapons
Reply With Quote #2

Try to return 0 on CanDeploy.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-13-2013 , 09:19   Re: Block deploy weapons
Reply With Quote #3

I've tried this but don't works
PHP Code:
RegisterHam(Ham_Item_CanDeploy"weapon_usp""HamWeapCanDeploy")

public 
HamWeapCanDeploy(ent)
{
   
SetHamReturnInteger(0)
   return 
HAM_SUPERCEDE

I tried such many ways but it didn't works or it's buggy (hud showing bullets and i can shoot on knife)
__________________

Last edited by alan_el_more; 10-13-2013 at 09:21.
alan_el_more is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-13-2013 , 10:26   Re: Block deploy weapons
Reply With Quote #4

Try Deploy then.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-13-2013 , 11:21   Re: Block deploy weapons
Reply With Quote #5

Same bug
__________________
alan_el_more is offline
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 22:55.


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