Use Flashlight for use one item
Hi iam using this: register_clcmd( "impulse 100", "CmdUseItem" )
For when press f it uses the item. Well that isnt working x) The problem isnt CmdUseItem because if i use "item" insted of "impulse 100" and then bind f item, it works. So someone have any idea why not working? |
Re: Use Flashlight for use one item
register_impulse
|
Re: Use Flashlight for use one item
100 is the argument.
You have to multiplex the arguments in your code. |
Re: Use Flashlight for use one item
register_impulse("100", "CmdUseItem") ?
|
Re: Use Flashlight for use one item
Yep. And I believe you have to include engine for it to work.
|
Re: Use Flashlight for use one item
Quote:
|
Re: Use Flashlight for use one item
Quote:
Anyway flashlight is only impulse 100 or it works with any other value? Because if people can use other value for flashlight, i might modify it for all values :3 |
| All times are GMT -4. The time now is 16:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.