Raised This Month: $ Target: $400
 0% 

Use Flashlight for use one item


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 09:32   Use Flashlight for use one item
Reply With Quote #1

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?
__________________
Jhob94 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-17-2013 , 10:11   Re: Use Flashlight for use one item
Reply With Quote #2

register_impulse
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ToXedVirus
Member
Join Date: Mar 2007
Old 05-17-2013 , 10:22   Re: Use Flashlight for use one item
Reply With Quote #3

100 is the argument.

You have to multiplex the arguments in your code.
ToXedVirus is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 10:43   Re: Use Flashlight for use one item
Reply With Quote #4

register_impulse("100", "CmdUseItem") ?
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-17-2013 , 13:18   Re: Use Flashlight for use one item
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
register_impulse(100, "CmdUseItem") ?
Fixed, arg is integer, not string.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-17-2013 , 14:23   Re: Use Flashlight for use one item
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Fixed, arg is integer, not string.
Thanks
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
__________________

Last edited by Jhob94; 05-17-2013 at 14:25.
Jhob94 is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-17-2013 , 13:15   Re: Use Flashlight for use one item
Reply With Quote #7

Yep. And I believe you have to include engine for it to work.
Decompiler 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 16:26.


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