Raised This Month: $ Target: $400
 0% 

Check if command is being executed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-31-2010 , 11:13   Check if command is being executed
Reply With Quote #1

How can I check if is user executing a command?
For example i register:
PHP Code:
////globabl
new blabled[33]

////init
register_clcmd("blablabla""omgrotfl"
And then I bind '+blablabla' for 'v' button.

Now I want to check if v is pressed (is blablabla executing) and if it is then switch blabled[id] = 1, or if it is not then turn blabled[id] = 0.
So if user is holding V then 'blabled[id] = 1', if he releases v his 'blabled[id] = 0'.
How can I do that? V is just an example, I want to check is 'blablabla' working in current moment.
Gadzislaw007 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 00:12.


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