Block buy menu in reapi

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
40
Реакции
-3
reapi has any way to block the "buy menu" without the black screen bug?

I tried it but I didn't get a success.


Код:
#include <amxmodx>
#include <reapi>

#define PLUGIN  "Buy Menu Block teste :)"
#define VERSION "1.0"
#define AUTHOR  "Wilian M."

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    RegisterHookChain(RG_ShowVGUIMenu, "xRG_ShowVGUIMenuPre", false)
}

public xRG_ShowVGUIMenuPre(id, VGUIMenu:xMenuType, xBitsSlots, xOldMenu[])
{
   
    if(xMenuType == VGUI_Menu_Buy)
    {
        client_print(id, 3, "func here")
        return HC_SUPERCEDE
    }

    return HC_CONTINUE
}
 
Последнее редактирование модератором:
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
What is black screen bug?
 
Сообщения
1,698
Реакции
1,510
Помог
26 раз(а)
m_bForceShowMenu, but this isn't blocking a client VGUI buy.
 
Последнее редактирование:
Сообщения
2,491
Реакции
2,794
Помог
61 раз(а)
wilianm, you can't block/remove buyzone (or indicator of it) because on client it's checking when user press buy. And also you can't block VGUI buy menu because it's on client-side. All sings that you can do is to hook opening menu and close it. But it shows for a little time and client will see it.
 
Сообщения
40
Реакции
-3
wilianm, you can't block/remove buyzone (or indicator of it) because on client it's checking when user press buy. And also you can't block VGUI buy menu because it's on client-side. All sings that you can do is to hook opening menu and close it. But it shows for a little time and client will see it.
exactly, it has to open and close, I thought that in reapi it would be possible, you can close the topic!
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу