reapi has any way to block the "buy menu" without the black screen bug?
I tried it but I didn't get a success.
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
}
Последнее редактирование модератором: