Raised This Month: $ Target: $400
 0% 

Blocking Buy Commands (Basic)


Post New Thread Reply   
 
Thread Tools Display Modes
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-27-2013 , 09:33   Re: Blocking Buy Commands (Basic)
Reply With Quote #31

Quote:
Originally Posted by Bos93 View Post
How best to block VGUI menus?

I think this is not the best option:

PHP Code:
public client_connectpPlayer 
{
        
set_user_infopPlayer"_vgui_menus""0" );


And this option is not very good:

PHP Code:
message_beginMSG_ONEget_user_msgid"BuyClose" ), _Player );
message_end( ); 
I need to show a new menu.
n1ce up from old topic (2009), and its slow hack, search by block buy include.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 09:39   Re: Blocking Buy Commands (Basic)
Reply With Quote #32

I can well ask here. Search used. The decision was not.
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-27-2013 , 11:28   Re: Blocking Buy Commands (Basic)
Reply With Quote #33

vgui is cached each time InfoChanged is called.
You can set pdata to false on there.

If it is for buy menus, you can hook commands sent when players choose options, see there : https://forums.alliedmods.net/showthread.php?t=149380
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 13:55   Re: Blocking Buy Commands (Basic)
Reply With Quote #34

Quote:
Originally Posted by ConnorMcLeod View Post
vgui is cached each time InfoChanged is called.
You can set pdata to false on there.
Name Offset?
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-27-2013 , 15:25   Re: Blocking Buy Commands (Basic)
Reply With Quote #35

m_bVGUIMenus (full offset linux 2060)
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 15:39   Re: Blocking Buy Commands (Basic)
Reply With Quote #36

Thanks !
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 17:18   Re: Blocking Buy Commands (Basic)
Reply With Quote #37

bool m_bVGUIMenus; /* 2060 1 */

Win: 2059 ?
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-27-2013 , 17:53   Re: Blocking Buy Commands (Basic)
Reply With Quote #38

win 2040, you have to use set_pdata_bool from my .inc file, set each time client_infochanged is fired.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 17:57   Re: Blocking Buy Commands (Basic)
Reply With Quote #39

Quote:
Originally Posted by ConnorMcLeod View Post
win 2040

Thanks.

Quote:
Originally Posted by ConnorMcLeod View Post
you have to use set_pdata_bool from my .inc file, set each time client_infochanged is fired.
I know ;-)
__________________

Last edited by Bos93; 06-27-2013 at 17:57.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-27-2013 , 18:10   Re: Blocking Buy Commands (Basic)
Reply With Quote #40

I tested, still see VGUI menus

public client_infochanged( pPlayer ) set_pdata_bool( pPlayer, 2040, false );
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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 13:19.


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