- Ошибка
-
None
- ОС
- Linux
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 09:10:05 Jul 7 2017 (7561)
- ReGamedll
-
ReGameDLL version 5.7.0.312
- Список метамодулей
-
Metamod v1.21
- Список плагинов
-
admin.amxx
admincmd.amxx
adminhelp.amxx
adminslots.amxx
multilingual.amxx
menufront.amxx
cmdmenu.amxx
plmenu.amxx
mapsmenu.amxx
pluginmenu.amxx
adminchat.amxx
antiflood.amxx
scrollmsg.amxx
imessage.amxx
adminvote.amxx
nextmap.amxx
mapchooser.amxx
timeleft.amxx
pausecfg.amxx
statscfg.amxx
statsx.amxx
amx_settings_api.amxx
aliens_vs_predator.amxx
avp_alien_species.amxx
avp_marine_species.amxx
avp_weapons.amxx
avp_marine_class.amxx
- Исходный код
-
#include <amxmodx>
#include <reapi>
#include <avp_alien_species>
#include <avp_marine_species>
public plugin_init()
{
register_plugin("Aliens vs Predator Mod", AVP_VERSION_STR, "Crazy");
RegisterHookChain(RG_ShowVGUIMenu, "CGamedllFunc_ShowVGUIMenu");
}
public CGamedllFunc_ShowVGUIMenu(this, VGUIMenu:iMenuType, bitsSlots, szOldMenu[])
{
if (is_user_bot(this))
return HC_CONTINUE;
if (iMenuType != VGUI_Menu_Team)
return HC_CONTINUE;
showMenuSpecies(this);
return HC_SUPERCEDE;
}
showMenuSpecies(this)
{
new szBuffer[64];
formatex(szBuffer, charsmax(szBuffer), "Aliens vs. Predator^n^n\d--- CHOOSE YOUR SPECIES ---");
new hMenu = menu_create(szBuffer, "menuSpecies");
menu_additem(hMenu, "Aliens");
menu_additem(hMenu, "Marines");
menu_additem(hMenu, "Predators");
menu_setprop(hMenu, MPROP_NUMBER_COLOR, "\y");
menu_display(this, hMenu, 0);
}
public menuSpecies(this, hMenu, iItem)
{
if (!is_user_connected(this))
return PLUGIN_HANDLED;
menu_destroy(hMenu);
switch (iItem)
{
case MENU_EXIT:
return PLUGIN_HANDLED;
case 0:
avp_alien_classes_menu(this);
case 1:
avp_show_marines_menu(this);
}
return PLUGIN_HANDLED;
}
Hello, I'm trying to block VGUI team menu and show my own custom menu instead. It's working but player doesn't join in spectator team and stay "stucked".If I force the player to respawn (rg_round_respawn), nothing occurs, even if I set he team to TEAM_TERRORIST or TEAM_CT.
В этой теме было размещено решение! Перейти к решению.