Raised This Month: $ Target: $400
 0% 

Pressing a number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 04-30-2012 , 11:56   Pressing a number
Reply With Quote #1

Hey guys,

I want to detect when players press the number "5".
I know that I can detect when a player's moving or shooting with FM_CmdStart, but there are no really button constants for numbers. Is there any way I can still do that?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-30-2012 , 12:06   Re: Pressing a number
Reply With Quote #2

You can hook "slot5" since that's the default bind, but if player changes it then there's no guarantee.

Why do you want to hook 5? There could be a better solution depending on what you're doing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 04-30-2012 , 14:11   Re: Pressing a number
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
You can hook "slot5" since that's the default bind, but if player changes it then there's no guarantee.

Why do you want to hook 5? There could be a better solution depending on what you're doing.
There always could be, but I was just wondering, nothing really I wanted to build with that .
And yeah the probability that someone will hook slot5 on another key is low, so it's a pretty good method, thanks.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive

Last edited by Diegorkable; 04-30-2012 at 14:12.
Diegorkable 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 07:44.


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