Raised This Month: $51 Target: $400
 12% 

event for IN_ buttons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 06-06-2014 , 12:39   event for IN_ buttons
Reply With Quote #1

i jsut need event that when player click IN_ button
daniel46 is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 06-06-2014 , 13:16   Re: event for IN_ buttons
Reply With Quote #2

there is no specific event for that. with FM_CmdStart, you can retrieve IN_* values and modify them easyly. Note that this event is called something like 10 time par second per player. (like prethink)
Fr33m@n is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 06-06-2014 , 13:34   Re: event for IN_ buttons
Reply With Quote #3

there in no event that is called jsut when you press the button cause i use prethink and its fps amount in second so....
daniel46 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-06-2014 , 16:43   Re: event for IN_ buttons
Reply With Quote #4

Quote:
Originally Posted by Fr33m@n View Post
there is no specific event for that. with FM_CmdStart, you can retrieve IN_* values and modify them easyly. Note that this event is called something like 10 time par second per player. (like prethink)
These forwards are called every frame, so... by default it should be 100 times per second per player.
klippy is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 06-06-2014 , 16:46   Re: event for IN_ buttons
Reply With Quote #5

so the best event is cmdstart?
daniel46 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-06-2014 , 19:03   Re: event for IN_ buttons
Reply With Quote #6

Quote:
Originally Posted by daniel46 View Post
so the best event is cmdstart?
Depends. Tell us which buttons are you willing to hook.
klippy is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-06-2014 , 21:54   Re: event for IN_ buttons
Reply With Quote #7

Or even better, what you're trying to do.
__________________
Black Rose is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-06-2014 , 22:26   Re: event for IN_ buttons
Reply With Quote #8

Quote:
Originally Posted by Black Rose View Post
Or even better, what you're trying to do.
And also search.
This discussion here may be quite relevant.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 06-07-2014 , 10:11   Re: event for IN_ buttons
Reply With Quote #9

well what i want to do is combo contest so i need to check when player is clicking the right button and when not
daniel46 is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 06-07-2014 , 10:27   Re: event for IN_ buttons
Reply With Quote #10

The easiest way I can think of is to register the forward(CmdStart) and enable/disable it when needed.
SpeeDeeR 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 11:19.


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