не работает отсчет в map_manager_modular

IIuToH

Пользователь
Регистрация
5 Авг 2018
Сообщения
131
Симпатии
0
OS
Linux
Amx Mod X
AMXX 1.9.0
Билд
Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.7.0.695-dev Build date: 14:15:13 Apr 6 2020 (2186)
ReGamedll
5.14.0.456-dev
Metamod
Metamod v1.21p37 2013/05/30 (5:13)
Meta модули
Код:
[ 1] VoiceTranscoder RUN - VoiceTranscoder. v2020MA2 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 6] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl2 ANY ANY
[ 7] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl2 ANY ANY
[ 8] GeoIP RUN - geoip_amxx_i386. v1.9.0.5 pl2 ANY ANY
[ 9] Engine RUN - engine_amxx_i386 v1.9.0.5 pl2 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl2 ANY ANY
[11] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl2 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl2 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386. v5.12.0. pl2 ANY Never
[14] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl2 ANY ANY
Плагины
Код:
[ 1] AMXBans: Core 1.9.0 MA: 1.6.12 Larte Team amxbans_core.am running
[ 2] AMXBans: Main 1.9.0 MA: 1.6.12 Larte Team amxbans_main.am running
[ 3] Center Msg Fix 0.4 mx?! CenterMsgFix.am running
[ 4] Players Menu 15.04.08 AMXX Dev Team & admincmd_rbs.am running
[ 5] Slots Reservation 1.9.0.5262 AMXX Dev Team adminslots.amxx running
[ 6] Commands Menu 1.9.0.5262 AMXX Dev Team cmdmenu.amxx running
[ 7] Maps Menu 1.9.0.5262 AMXX Dev Team mapsmenu.amxx running
[ 8] Admin Chat 1.9.0.5262 AMXX Dev Team adminchat.amxx running
[ 9] Anti Flood 1.9.0.5262 AMXX Dev Team antiflood.amxx running
[ 10] [190] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 11] [190] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 12] Pause Plugins 1.9.0.5262 AMXX Dev Team pausecfg.amxx running
[ 13] Stats Configuration 18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 14] [183] StatsX RBS 19.08.28 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 15] CS Misc. Stats 1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 16] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 17] [190] Army Ranks Ultim 19.11.29 SKAJIbnEJIb army_ranks_ulti running
[ 18] [183] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 19] ResetScore 1.0 Leo_[BH] resetscore_reap running
[ 20] Parachute 1.0r Leo_[BH] parachute.amxx running
[ 21] Flashbang Ban 0.2 mx?! flashbang_ban.a running
[ 22] Respawn 1.0 Dosyk Respawn_dead.am running
[ 23] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_FIT running
[ 24] Last players sound 1.0 dev-cs community last_players_so running
[ 25] [ReAPI] Random Weapons 2.4.4 neugomon warmup.amxx running
[ 26] [183] Kill Assist RBS 19.11.14 SKAJIbnEJIb & Di killassist_rbs. running
[ 27] Nice Killer 1.6 Got Milk? / HoHo nice_killer.amx running
[ 28] [190] VIP RBS 19.12.09 SKAJIbnEJIb vip_rbs.amxx running
[ 29] [ReAPI] AWPoff 1.4.2 PAffAEJIkA :3 awp_off_t.amxx running
[ 30] [183] Ad From Server 19.08.29 SKAJIbnEJIb ad_from_server. running
[ 31] [183] Ultimate Flags 19.10.30 SKAJIbnEJIb ultimate_flags. running
[ 32] Gag Me 2.3.4 Radius gag_me.amxx running
[ 33] Map Manager: Core 3.0.5 Mistrick map_manager_cor running
[ 34] Map Manager: Scheduler 0.1.3 Mistrick map_manager_sch running
[ 35] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 36] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 37] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 38] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 39] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
Amxx Модули
Код:
MySQL 1.9.0.5262 AMX Mod X Dev Team running
FakeMeta 1.9.0.5262 AMX Mod X Dev Team running
Engine 1.9.0.5262 AMX Mod X Dev Team running
CSX 1.9.0.5262 AMX Mod X Dev Team running
CStrike 1.9.0.5262 AMX Mod X Dev Team running
Fun 1.9.0.5262 AMX Mod X Dev Team running
ReAPI 5.12.0.192 Asmodai & s1lent running
Ham Sandwich 1.9.0.5262 AMX Mod X Dev Team running
nVault 1.9.0.5262 AMX Mod X Dev Team running
Sockets 1.9.0.5262 AMX Mod X Dev Team running
Sockets2 1.8.1.3746 HLSW Dev Team running
Всего 11 модулей
Ошибка
Код:
не работает звуковой отсчет
Исходник
Код:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <map_manager>

#define PLUGIN "Map Manager: Effects"
#define VERSION "0.0.8"
#define AUTHOR "Mistrick"

#pragma semicolon 1

#define get_num(%0) get_pcvar_num(g_pCvars[%0])
#define set_num(%0,%1) set_pcvar_num(g_pCvars[%0],%1)
#define get_float(%0) get_pcvar_float(g_pCvars[%0])
#define set_float(%0,%1) set_pcvar_float(g_pCvars[%0],%1)

enum (+=100) {
TASK_FULLBLACK = 100
};

enum Cvars {
BLACK_SCREEN,
BLOCK_CHAT,
BLOCK_VOICE,
FREEZE_IN_VOTE,
VOICE_ENABLED,
FREEZETIME,
VOTE_IN_NEW_ROUND,
PREPARE_TIME,
VOTE_TIME,
CHANGE_TYPE,
LAST_ROUND
};

enum {
FREEZE_DISABLED,
FREEZE_TIME_ENABLED,
FREEZE_FORCE_USE_FLAGS
};

new g_pCvars[Cvars];
new bool:g_bBlockChat;
new bool:g_bFreezetimeChanged;
new HamHook:g_hHamSpawn;

new const g_sSound[][] = {
"sound/sectors/nice_1.wav", "sound/sectors/nice_2.wav", "sound/sectors/nice_3.wav", "sound/sectors/nice_4.wav", "sound/sectors/nice_5.wav",
"sound/fvox/six.wav", "sound/fvox/seven.wav", "sound/fvox/eight.wav", "sound/fvox/nine.wav", "sound/fvox/ten.wav"
};

new g_sCurMap[MAPNAME_LENGTH];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

g_pCvars[BLACK_SCREEN] = register_cvar("mapm_black_screen", "1"); // 0 - disable, 1 - enable
g_pCvars[BLOCK_CHAT] = register_cvar("mapm_block_chat", "1"); // 0 - disable, 1 - enable
g_pCvars[BLOCK_VOICE] = register_cvar("mapm_block_voice", "1"); // 0 - disable, 1 - enable
g_pCvars[FREEZE_IN_VOTE] = register_cvar("mapm_freeze_in_vote", "1"); //0 - disable, 1 - enable, 2 - force use flags

g_pCvars[VOICE_ENABLED] = get_cvar_pointer("sv_voiceenable");

DisableHamForward(g_hHamSpawn = RegisterHam(Ham_Spawn, "player", "player_spawn_post", 1));
}
public plugin_cfg()
{
get_mapname(g_sCurMap, charsmax(g_sCurMap));

if(get_num(BLOCK_CHAT)) {
register_clcmd("say", "clcmd_say");
register_clcmd("say_team", "clcmd_say");
}
if(get_num(FREEZE_IN_VOTE)) {
g_pCvars[FREEZETIME] = get_cvar_pointer("mp_freezetime");
g_pCvars[VOTE_IN_NEW_ROUND] = get_cvar_pointer("mapm_vote_in_new_round");
g_pCvars[PREPARE_TIME] = get_cvar_pointer("mapm_prepare_time");
g_pCvars[VOTE_TIME] = get_cvar_pointer("mapm_vote_time");
g_pCvars[CHANGE_TYPE] = get_cvar_pointer("mapm_change_type");
g_pCvars[LAST_ROUND] = get_cvar_pointer("mapm_last_round");
}
}
public plugin_end()
{
if(g_bFreezetimeChanged) {
set_float(FREEZETIME, get_float(FREEZETIME) - get_float(PREPARE_TIME) - get_float(VOTE_TIME) - 1);
}
}
public clcmd_say(id)
{
if(!g_bBlockChat) return PLUGIN_CONTINUE;

new args[2]; read_args(args, charsmax(args));

return (args[0] == '/') ? PLUGIN_HANDLED_MAIN : PLUGIN_HANDLED;
}
public player_spawn_post(id)
{
if(get_num(FREEZE_IN_VOTE) == FREEZE_FORCE_USE_FLAGS || get_num(FREEZE_IN_VOTE) && !get_num(VOTE_IN_NEW_ROUND)) {
set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN);
}
if(get_num(BLACK_SCREEN)) {
set_black_screenfade(1);
}
}
public mapm_countdown(type, time)
{
if(type == COUNTDOWN_PREPARE) {
// hud timer
new players[32], pnum; get_players(players, pnum, "ch");
set_hudmessage(50, 255, 50, -1.0, 0.3, 0, 0.0, 1.0, 0.0, 0.0, 4);
for(new i, id; i < pnum; i++) {
id = players;
show_hudmessage(id, "%L %L!", id, "MAPM_HUD_TIMER", time, id, "MAPM_SECONDS");
}
// sound
if( 0 < time <= 10 ) {
send_audio(0, g_sSound[time - 1], PITCH_NORM);
}
}
}
public mapm_prepare_votelist(type)
{
if(get_num(BLACK_SCREEN)) {
set_black_screenfade(2);
set_task(1.0, "set_full_black", TASK_FULLBLACK);
}
if(get_num(BLOCK_CHAT)) {
g_bBlockChat = true;
}
if(get_num(BLOCK_VOICE)) {
set_num(VOICE_ENABLED, 0);
}
if(get_num(FREEZE_IN_VOTE)) {
if(get_num(FREEZE_IN_VOTE) == FREEZE_TIME_ENABLED
&& (type == VOTE_BY_SCHEDULER || type == VOTE_BY_RTV || type == VOTE_BY_CMD)
&& get_num(VOTE_IN_NEW_ROUND)) {
// increase freezetime
g_bFreezetimeChanged = true;
set_float(FREEZETIME, get_float(FREEZETIME) + get_float(PREPARE_TIME) + get_float(VOTE_TIME) + 1);
} else {
freeze_unfreeze(0);
}
}
EnableHamForward(g_hHamSpawn);
}
public mapm_vote_started(type)
{
send_audio(0, "sound/Gman/Gman_Choose2.wav", PITCH_NORM);
}
public mapm_vote_finished(const map[], type, total_votes)
{
disable_effects(map);
}
public mapm_vote_canceled(type)
{
disable_effects("");
}
disable_effects(const map[])
{
if(get_num(BLACK_SCREEN)) {
remove_task(TASK_FULLBLACK);
set_black_screenfade(0);
}
if(get_num(BLOCK_CHAT)) {
g_bBlockChat = false;
}
if(get_num(BLOCK_VOICE)) {
set_num(VOICE_ENABLED, 1);
}
if(get_num(FREEZE_IN_VOTE) != FREEZE_DISABLED) {
if(g_bFreezetimeChanged) {
// decrease freezetime
g_bFreezetimeChanged = false;
set_float(FREEZETIME, get_float(FREEZETIME) - get_float(PREPARE_TIME) - get_float(VOTE_TIME) - 1);
}
if(get_num(CHANGE_TYPE) || get_num(LAST_ROUND) || is_map_extended(map)) {
freeze_unfreeze(1);
}
}
DisableHamForward(g_hHamSpawn);
}
public set_full_black(taskid)
{
set_black_screenfade(1);
}
stock freeze_unfreeze(type)
{
new players[32], pnum; get_players(players, pnum, "a");
for(new id, i; i < pnum; i++) {
id = players;
set_pev(id, pev_flags, type ? (pev(id, pev_flags) & ~FL_FROZEN) : pev(id, pev_flags) | FL_FROZEN);
}
}
is_map_extended(const map[])
{
return equali(map, g_sCurMap);
}
stock set_black_screenfade(fade)
{
new time, hold, flags;
static msg_screenfade; if(!msg_screenfade) msg_screenfade = get_user_msgid("ScreenFade");

switch (fade) {
case 1: { time = 1; hold = 1; flags = 4; }
case 2: { time = 4096; hold = 1024; flags = 1; }
default: { time = 4096; hold = 1024; flags = 2; }
}

message_begin(MSG_ALL, msg_screenfade);
write_short(time);
write_short(hold);
write_short(flags);
write_byte(0);
write_byte(0);
write_byte(0);
write_byte(255);
message_end();
}
Здравствуйте
почему не работает голосовой отсчет? звуки есть, да и свои пути тоже прописывал!
даже на клиент не скачиваются
 
Сверху Снизу