Raised This Month: $ Target: $400
 0% 

+/- Command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 10-02-2022 , 22:40   Re: +/- Command
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
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 
ChargeUltimateClient )

         
client_printClientprint_chat"Charging" );
         return 
1;
}
public 
ReleaseUltimateClient )

         
client_printClientprint_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?

Last edited by MrPickles; 10-02-2022 at 22:44.
MrPickles is offline
Reply



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 15:42.


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