Quote:
Originally Posted by fysiks
What game are you playing? I just tested in Day of Defeat and it works as expected (the + command executes when I press the button and the - command executes when I release the button).
Did you properly bind your key and properly code your plugin? Write a test plugin like I did and make sure it works there to either rule in our out your primary plugin.
|
PHP Code:
public plugin_init()
{
register_clcmd( "+ultimate", "ChargeUltimate" );
register_clcmd( "-ultimate", "ReleaseUltimate" );
}
public ChargeUltimate( Client )
{
client_print( Client, print_chat, "Charging" );
return 1;
}
public ReleaseUltimate( Client )
{
client_print( Client, print_chat, "Releasing" );
return 1;
}
and the mod is Half Life 1, try with a print
edit: is called when you open the menu with escape and close it, i dont know why, it is normal?