Raised This Month: $99 Target: $400
 24% 

Menu creation in plugin sample_mm does not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zeon74
New Member
Join Date: Feb 2019
Old 02-16-2019 , 02:48   Menu creation in plugin sample_mm does not working
Reply With Quote #1

Hello forum,

I compiled sample plugin https://github.com/alliedmodders/met...-dev/sample_mm and installed to csgo server, hooks works (checked via logging), but menu not works.

I tried with a lot of way to change code of sample, but no success.
Tried
PHP Code:
    SH_CALL(g_pSPHCC, &IServerPluginHelpers::CreateMessage)(
           
pEntity,
            
DIALOG_MENU,
            
kv,
            
vsp_callbacks); 
also
PHP Code:
helpers->CreateMessage(pEntityDIALOG_MENUkvvsp_callbacks); 
Can anyone help? Where I can find working example? Thank you!
zeon74 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-16-2019 , 10:11   Re: Menu creation in plugin sample_mm does not working
Reply With Quote #2

CS:GO doesn't support that old style of menu.

If you want to use the "radio" menu like SourceMod does, you need to send the usermessage for it (and watch for the menuselect commands).
psychonic is offline
zeon74
New Member
Join Date: Feb 2019
Old 02-18-2019 , 09:36   Re: Menu creation in plugin sample_mm does not working
Reply With Quote #3

Thank you. You saved my a lot of time. After a bit fighting with symbols compatibility of libprotobuf, all works.

Quote:
Originally Posted by psychonic View Post
CS:GO doesn't support that old style of menu.

If you want to use the "radio" menu like SourceMod does, you need to send the usermessage for it (and watch for the menuselect commands).
zeon74 is offline
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 03:34.


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