Raised This Month: $32 Target: $400
 8% 

Solved Request: Auto Bind Key -?-


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizzkidon
Senior Member
Join Date: Jan 2017
Old 05-14-2022 , 09:27   Request: Auto Bind Key -?-
Reply With Quote #1

Hello. I'm looking for something that will change a player's key.

I'm using on DR+abilities plugin. Each knife, have any power. I want when he select any knife power, to activate automatically in console respective bind.

I am attaching a little part of the menu-plugin

Code:
....
{			     
			client_cmd( id, "bind v ^"teleport^"" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Ai ales Questul -> ^3Nightcrawler" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Apasa^4 ^"v^"^1 pentru a folosi teleport !" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Daca teleportarea esueaza mai incearca odata!" );
			
			SetKnifePower( id, 6 );
			menu_destroy( menu );
		}
		
		case 8:
		{
			client_cmd( id, "bind v ^"+thunder^"" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Ai ales Questul -> ^3Storm" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Apasa^4 ^"v^"^1 pentru a folosi fulgerul !" );

			SetKnifePower( id, 7 );
			menu_destroy( menu );
		}
		
		case 9:
		{
			client_cmd( id, "bind v ^"flash^"" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Ai ales Questul -> ^3Spectru" );
			UTIL_ColorPrint( id, "^4[QuestMod]^1 Apasa^4 ^"v^"^1 pentru a folosi blind !" );

			SetKnifePower( id, 8 );
		}
.....

Last edited by wizzkidon; 05-14-2022 at 11:29.
wizzkidon is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2022 , 10:04   Re: Request: Auto Bind Key -?-
Reply With Quote #2

You can't auto-bind a key. Why would anyone want to have their bindings ruined by a random server?
You can assign the functions to existing commands/actions (e.g. using the "drop" command), but not buttons.
__________________

Last edited by OciXCrom; 05-14-2022 at 10:05.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 13:59.


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