how can i know when player stops presssing a button?
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( ) {help? |
Re: how can i know when player stops presssing a button?
When player press E he gets +2 hp example:
Code:
#include <amxmodx> |
Re: how can i know when player stops presssing a button?
PHP Code:
PHP Code:
|
Re: how can i know when player stops presssing a button?
Please don't post code that you don't know how it works. Also, prethink is not what you would want to use here. You would want to use cmdstart if you want to use the "USE" button.
IIRC, it is possible to use +/- commands but I can't remember how to implement then. You should search around because I know there are some topics about it. |
Re: how can i know when player stops presssing a button?
It works exactly the way he's doing it, hooking +command and -command.
|
Re: how can i know when player stops presssing a button?
Quote:
Quote:
i was talking about making my own command. Quote:
|
Re: how can i know when player stops presssing a button?
Quote:
|
| All times are GMT -4. The time now is 13:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.