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

Solved [Request] Plugin that binds things without changing player cfg


Post New Thread Reply   
 
Thread Tools Display Modes
minimovz
Member
Join Date: Jan 2011
Old 11-26-2020 , 07:56   Re: [Request] Plugin that binds things without changing player cfg
Reply With Quote #11

Quote:
Originally Posted by GsiX View Post

They are the same command.. you just put command on top of another command.
Not really, in csgo the G key is defaulted to the command "drop", this can be triggered in console or pressing the key G, the RegConsoleCmd("drop", OpenMenu) will attach the function OpenMenu to the drop command, and the OpenMenu function fakes a client command sm_guns, effectively adding on to the drop command and without the need for the client to change any config, the only concern i have is with the client thing and the only reason i am concerned with it is that i have no experience with plugin coding other than modifying small things like this, i already tried this code alone in a server and worked for what i want, just have the lingering concern of what said in the before paragraph

Last edited by minimovz; 11-26-2020 at 07:57.
minimovz is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-26-2020 , 08:38   Re: [Request] Plugin that binds things without changing player cfg
Reply With Quote #12

I notice that and delete my comment. I was reading it wrong as admin command. Almost forgot the console command tho.
If this works for you, it should work for everyone. My concerns is the menu being overwritten multiple times without properly closing it. If it works, it works i guess.

Edit:
when i think this thru, your solution actually is the best.
Don't worry about the menu being leaking. High likely it won't.
I suppose you will get console warning but you won't crash.
Until then enjoy your plugin.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-26-2020 at 09:33.
GsiX is offline
minimovz
Member
Join Date: Jan 2011
Old 11-26-2020 , 15:09   Re: [Request] Plugin that binds things without changing player cfg
Reply With Quote #13

Quote:
Originally Posted by GsiX View Post
I notice that and delete my comment. I was reading it wrong as admin command. Almost forgot the console command tho.
If this works for you, it should work for everyone. My concerns is the menu being overwritten multiple times without properly closing it. If it works, it works i guess.

Edit:
when i think this thru, your solution actually is the best.
Don't worry about the menu being leaking. High likely it won't.
I suppose you will get console warning but you won't crash.
Until then enjoy your plugin.
thank you for the assistance nonetheless
minimovz 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 00:23.


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