Raised This Month: $ Target: $400
 0% 

how can i know when player stops presssing a button?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shlomi
Junior Member
Join Date: Oct 2013
Old 08-07-2014 , 11:40   how can i know when player stops presssing a button?
Reply With Quote #1

lets say i want to make a specific command, that does something until the player stops pressing the button.
how can i do that?
( i'm not talking about commands like JUMP, DUCK, ATTACK, and all that, i know i can catch that with RegisterHam, but i want to make a command of my own that the player will bind and when he stops pressing the button the action will stop. )
i tried to do something like that:
Code:
public plugin_init( ) {
	register_clcmd( "+command", "DoStuff" );
	register_clcmd( "-command", "Stop" );
}
but it seems to not work.
help?
Shlomi is offline
 



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 13:04.


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