AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Questions (https://forums.alliedmods.net/forumdisplay.php?f=74)
-   -   Menu creation in plugin sample_mm does not working (https://forums.alliedmods.net/showthread.php?t=314365)

zeon74 02-16-2019 03:48

Menu creation in plugin sample_mm does not working
 
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!

psychonic 02-16-2019 11:11

Re: Menu creation in plugin sample_mm does not working
 
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 02-18-2019 10:36

Re: Menu creation in plugin sample_mm does not working
 
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 (Post 2639898)
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).



All times are GMT -4. The time now is 14:23.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.