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?