- Ошибка
-
Focus on votemap и Hide HUD/Menu on Vote не убирают иконки зоны закупки, бомбы и дефьюзкита
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5229
- Билд
-
ReHLDS version: 3.4.0.668-dev
- ReGamedll
-
ReGameDLL version: 5.7.0.318-dev
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5229 ini Start ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] VTC AMXX API RUN - VoiceTranscoderApiProvider_amxx_i386.so v2017 RC pl5 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl5 ANY Never
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[12] MySQL RUN - mysql_amxx_i386.so v1.9.0.5229 pl5 ANY ANY
[13] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5229 pl5 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5229 pl5 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5229 pl5 ANY ANY
[16] Engine RUN - engine_amxx_i386.so v1.9.0.5229 pl5 ANY ANY
16 plugins, 16 running
- Список плагинов
-
name version author file status
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] DopBan 3.0.3b kanagava dop_ban.amxx running
[ 3] FreshBans 1.4.0b kanagava fresh_bans_140. running
[ 4] ScreenMaker 1.1 neygomon screen_maker.am running
[ 5] WebHS 0.1 kanagava fb_web_online.a running
[ 6] ReAimDetector API 0.2.1 ReHLDS Team reaimdetector.a running
[ 7] Ultimate Chats Control 4.5 neygomon ucc.amxx running
[ 8] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 9] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 10] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 11] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 12] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 13] Info Rank 0.4.5 ConnorMcLeod info_rank.amxx running
[ 14] CSStatsX SQL 0.7.4+1 serfreeman1337 csstatsx_sql.am running
[ 15] Test Vip 0.1 ill testvip_sql.amx running
[ 16] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 17] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 18] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 19] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 20] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 21] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 22] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 23] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 24] Map Manager: Advanced 0.0.4 Mistrick map_manager_adv running
[ 25] MM block ext 0.0.1 dev-cs map_manager_blo running
[ 26] Menus Front-End 1.5 neugomon menufront_end.a running
[ 27] Admin Commands 1.9.0.5229 AMXX Dev Team admincmd.amxx running
[ 28] Players Menu 1.7 neugomon players_menu.am running
[ 29] Maps Menu 1.4.1+1 neugomon mapsmenu.amxx running
[ 30] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 31] Stats Configuration 1.9.0.5229 AMXX Dev Team statscfg.amxx running
[ 32] CS Stats Logging 1.9.0.5229 AMXX Dev Team stats_logging.a running
[ 33] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 34] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 35] Ping Control 1.31 neygomon Ping_Control.am running
[ 36] Admin Models 1.2 pUzzlik admin_models_v1 running
[ 37] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 38] Weapon Restrict 1.7 s1lent weapon_rest.amx running
[ 39] Advert Messages 1.22 neygomon adverts.amxx running
[ 40] Auto Demo Recorder 2.3 F@nt0M demo_recorder.a running
[ 41] Kills Counter 1.0 Safety1st killscounter.am running
[ 42] SF Warn Menu 0.1.4f serfreeman1337 sf_admin_warns. running
[ 43] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 44] Block Advert 1.4 neygomon block_advert.am running
[ 45] Lite Translit 2.8+1 neygomon lite_translit.a running
[ 46] Flash Control 2.2 neygomon flash_control.a running
[ 47] [ReAPI]Vip Weapons 3.6 ill Vip_Weapons.amx running
[ 48] Night Damager_Parashut 1.0 ill NightLiteVip.am stopped
[ 49] Steam Bonus 1.1 ill+F@nToM steam_bonus_a2. stopped
[ 50] No Players Map 0.1 X-factor no_players_map. stopped
[ 51] [ReAPI] Round Balancer 1.1 neygomon round_balancer. debug
[ 52] GameName Changer 1.0 neugomon gamename_change running
[ 53] AWPoff 1.7 PAffAEJIkA :3 hlds_awp_off.am running
[ 54] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 55] Yet Another Voteban 1.7 AndrewZ/voed/wop yet_another_vot running
[ 56] Private Message 0.5 Denzer PrivateMessage. running
[ 57] Time Pause Plugins 1.0 maFFyoZZyk & Mak time_pause_plug running
[ 58] block ip 0.2 legenda amx_blockip.amx running
[ 59] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 60] FocusOnVotemap 1.2.1 Boec[SpecOPs] focus_on_votema running
[ 61] Custom Smoke 1.05 bionext custom_smoke.am running
[ 62] Christmas hat 0.3 AMXX.Shop christmas_hat_r running
[ 63] Snow 0.1 floatman snow.amxx running
[ 64] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
64 plugins, 61 runn
- Автор плагина
- Boec[SpecOPs], второго плагина @d3m37r4
- Версия плагина
- 1.2.1, второго плагина 1.1
- Исходный код
-
================================= Конфигурация плагина =====================================*/
#define DEBUG false // Включить отладку
#define IGNORE_MASK false // Переключить режим паузы (true - поставятся все, кроме тех, что в перечне и наоборот)
// Если IGNORE_MASK == true, то это плагины, которые будут проигнорированы при установке паузы
// Если IGNORE_MASK == false, то только эти плагины будут поставлены на паузу
new const SEARCH_MASK[][64] =
{
"aes_",
"info_rank.amxx",
"killscounter.amxx",
"lite_translit.amxx"
};
// Какие элементы HUD будем прярятать
// (см. https://wiki.alliedmods.net/Half-Life_1_Game_Events#HideWeapon)
new g_iHudFlags = (1<<0) | (1<<1) | (1<<3) | (1<<4) | (1<<5) | (1<<6);
/*==========================================================================================*/
#include <amxmodx>
#include <cellarray>
#include <map_manager_consts>
#define PLUG_OBJNAME "FocusOnVotemap"
#define PLUG_VERSION "1.2.1"
#define PLUG_CREATOR "Boec[SpecOPs]"
/*=================================== Блок переменных ======================================*/
new g_iPluginId;
new Array:g_aAlredyPaused;
new g_msgHideWeapon;
new g_bBlockHud;
/*================== первичная инициализация и завершение работы плагина ===================*/
public plugin_init()
{
g_iPluginId = register_plugin(PLUG_OBJNAME, PLUG_VERSION, PLUG_CREATOR);
g_msgHideWeapon = get_user_msgid("HideWeapon");
register_event("ResetHUD", "onResetHUD", "ab");
register_message(g_msgHideWeapon, "msgHideWeapon");
#if DEBUG
register_clcmd("say /focus_test", "clcmd_focus_test");
#endif
}
/*================================== События плагина =======================================*/
Доброе утро, форумчане! Установил плагин FocusOnVotemap. Все пропадает, но как раз не пропадает то, что по факту мешает: иконки зоны закупки, бомбы и дефьюзкита.
Думал получится решить при установке плагина от d3m37r4, но там хоть и написано, что в версии 1.1
Плагины ставил и выше списка плагинов map_manager_ и вот как щас, не помогло((((
Прикрепленное изображение с плагином Focus on votemap. В плагине Hide HUD/Menu on Vote убирается иконка зоны покупки, а остальное так же (ну чат и звания не уходят)
Думал получится решить при установке плагина от d3m37r4, но там хоть и написано, что в версии 1.1
Но у меня блокируется только зона закупки, а все остальное есть((((Добавлен блок иконок дефьюзкита, бомбы и зоны закупки.
Код:
#include <amxmodx>
#include <reapi>
#include <map_manager>
enum {
STATUSICON_HIDE,
STATUSICON_SHOW
}
const HIDEHUD_FLAGS = (-1 & ~HIDEHUD_ALL);
new const g_sCmdList[][] = {"radio1", "radio2", "radio3"};
new HookChain:g_hookShowMenu;
new HookChain:g_hookPlayerSpawn;
new HookChain:g_hookMakeBomber;
new bool:g_bBlockRadioMenu;
new bool:g_bMapHasBombZone;
new g_iHideHud, g_iBlockRadioMenu, g_iBlockMenu;
public plugin_init() {
register_plugin("Hide HUD/Menu on Vote", "1.1", "d3m37r4");
register_cvar("mapm_hide_hud_on_vote", "1"); // Скрывать HUD игрока на время голосования (игровой худ, иконку бомбы, щипцов).
register_cvar("mapm_block_radio_cmd_on_vote", "1"); // Блокировать показ меню радио команд на время голосования.
register_cvar("mapm_block_menu_on_vote", "1"); // Блокировать показ меню закупки оружия, именю смены команды.
for(new i; i < sizeof g_sCmdList; i++) {
register_clcmd(g_sCmdList[i], "block_radio_cmd");
}
DisableHookChain(g_hookShowMenu = RegisterHookChain(RG_ShowVGUIMenu, "show_menu_pre", false));
DisableHookChain(g_hookPlayerSpawn = RegisterHookChain(RG_CSGameRules_PlayerSpawn, "player_spawn_post", true));
DisableHookChain(g_hookMakeBomber = RegisterHookChain(RG_CBasePlayer_MakeBomber, "make_bomber_post", true));
g_bMapHasBombZone = get_member_game(m_bMapHasBombZone);
}
public block_radio_cmd(id) {
return g_bBlockRadioMenu ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
}
public show_menu_pre(id) {
SetHookChainReturn(ATYPE_INTEGER, 0);
return HC_SUPERCEDE;
}
public make_bomber_post(id) {
if(is_user_connected(id)) {
set_user_icon(id, "c4", STATUSICON_HIDE);
}
}
public player_spawn_post(id) {
if(!is_user_connected(id)) {
return;
}
set_member(id, m_iHideHUD, get_member(id, m_iHideHUD) | HIDEHUD_FLAGS);
if(g_bMapHasBombZone && get_member(id, m_bHasDefuser)) {
set_user_icon(id, "defuser", STATUSICON_HIDE);
}
}
public mapm_prepare_votelist(type) {
if(type != VOTE_BY_SCHEDULER_SECOND) {
g_iHideHud = get_cvar_num("mapm_hide_hud_on_vote");
g_iBlockRadioMenu = get_cvar_num("mapm_block_radio_cmd_on_vote");
g_iBlockMenu = get_cvar_num("mapm_block_menu_on_vote");
enable_block_func();
}
}
public mapm_vote_finished() {
disable_block_func();
}
public mapm_vote_canceled() {
disable_block_func();
}
enable_block_func() {
if(g_iBlockRadioMenu) {
g_bBlockRadioMenu = true;
}
if(g_iBlockMenu) {
EnableHookChain(g_hookShowMenu);
buyzone_toogle_solid(SOLID_NOT);
}
if(g_iHideHud) {
EnableHookChain(g_hookPlayerSpawn);
if(g_bMapHasBombZone) {
EnableHookChain(g_hookMakeBomber);
}
}
}
disable_block_func() {
if(g_iBlockRadioMenu) {
g_bBlockRadioMenu = false;
}
if(g_iBlockMenu) {
DisableHookChain(g_hookShowMenu);
buyzone_toogle_solid(SOLID_TRIGGER);
}
if(g_iHideHud) {
DisableHookChain(g_hookPlayerSpawn);
DisableHookChain(g_hookMakeBomber);
for(new id; id <= MaxClients; id++) {
if(!is_user_connected(id)) {
continue;
}
set_member(id, m_iHideHUD, get_member(id, m_iHideHUD) & ~HIDEHUD_FLAGS);
if(!g_bMapHasBombZone) {
continue;
}
if(get_member(id, m_bHasC4)) {
set_user_icon(id, "c4", STATUSICON_SHOW);
}
if(get_member(id, m_bHasDefuser)) {
set_user_icon(id, "defuser", STATUSICON_SHOW);
}
}
}
}
stock buyzone_toogle_solid(const solid) {
new ent;
while((ent = rg_find_ent_by_class(ent, "func_buyzone"))) {
set_entvar(ent, var_solid, solid);
}
}
stock set_user_icon(const index, icon[], icon_state) {
static msgStatusIcon;
if(msgStatusIcon || (msgStatusIcon = get_user_msgid("StatusIcon")))
{
message_begin(index ? MSG_ONE : MSG_ALL, msgStatusIcon, _, index);
write_byte(icon_state);
write_string(icon);
if(icon_state) {
write_byte(0);
write_byte(160);
write_byte(0);
}
message_end();
}
}
Прикрепленное изображение с плагином Focus on votemap. В плагине Hide HUD/Menu on Vote убирается иконка зоны покупки, а остальное так же (ну чат и звания не уходят)
Вложения
-
30.2 KB Просмотры: 471