Raised This Month: $ Target: $400
 0% 

Using F1 & F2 to vote?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ran321
Junior Member
Join Date: Jul 2005
Old 05-02-2012 , 11:21   Using F1 & F2 to vote?
Reply With Quote #1

Does anyone know how to use the keys F1 & F2 to vote? I've seen this done on a few servers, but I can't seem to find anything that shows how to use those keys.
Ran321 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-02-2012 , 11:33   Re: Using F1 & F2 to vote?
Reply With Quote #2

AMXX doesn't read keys; it reads commands.
Liverwiz is offline
Ran321
Junior Member
Join Date: Jul 2005
Old 05-02-2012 , 12:40   Re: Using F1 & F2 to vote?
Reply With Quote #3

So is there a way to get it to read the F1 & F2 commands instead of Pressing keys 1 and 2 as such:

register_menucmd(register_menuid("Vote2"),MEN U_KEY_1|MENU_KEY_2,"Vote")

but using F1 and F2 instead?
Ran321 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-02-2012 , 13:52   Re: Using F1 & F2 to vote?
Reply With Quote #4

Quote:
Originally Posted by Ran321 View Post
So is there a way to get it to read the F1 & F2 commands instead of Pressing keys 1 and 2 as such:

register_menucmd(register_menuid("Vote2"),MEN U_KEY_1|MENU_KEY_2,"Vote")

but using F1 and F2 instead?
Write in your console:
Code:
bind f1 slot1; bind f2 slot2; etc...
It will only work for YOU ONLY, though.

Last edited by hleV; 05-02-2012 at 13:53.
hleV is offline
Ran321
Junior Member
Join Date: Jul 2005
Old 05-02-2012 , 15:20   Re: Using F1 & F2 to vote?
Reply With Quote #5

One last question, I have keys 6 & 7 bound as "slot6" and "slot7" is there a way to run a function if those buttons are pushed?

I've tried:

register_clcmd("slot6", "displayHelp")

but it doesn't pick it up (I'm assuming it's not submitting a command to the server and only selecting slot6?). Is it even possible to catch someone pressing 6 bound to "slot6" without slowhacking?

I'm sorry if this is a dumb question, but I can't seem to find anything on the search about this.

Last edited by Ran321; 05-02-2012 at 15:27.
Ran321 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-02-2012 , 12:50   Re: Using F1 & F2 to vote?
Reply With Quote #6

Not possible without slowhacking, which is forbidden.
__________________
<VeCo> 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 00:20.


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