Участник
Пользователь
- Сообщения
- 209
- Реакции
- 28
- Помог
- 8 раз(а)
- Ошибка
-
Не проигрывается музыка в mp3
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.8.2 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Feb 14 2013, 00:55:09
Build ID: 1.8.2 61:2ae84f7c0a97
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.6.3.7/Stdio (cstrike)
ReHLDS version: 3.4.0.653-dev
Build date: 10:42:01 May 22 2018 (1501)
Build from: https://github.com/dreamstalker/rehlds/commit/87a2d17
- ReGamedll
-
ReGameDLL version: 5.7.0.295-dev
Build date: 15:10:22 Feb 19 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aa329db
- Версия Metamod
-
Metamod-r v1.3.0.121, API (5:13)
Metamod-r build: 22:55:21 Mar 12 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/89b29af
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.2 ini Start ANY
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 4] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 7] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 9] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.8.2 pl2 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.8.2 pl2 ANY ANY
[12] ReParachute RUN - parachute_amxx_i386.so v1.1 Beta pl2 ANY ANY
[13] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[14] ReAPI RUN - reapi_amxx_i386.so v5.5.0.150-dev pl2 ANY Never
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.2 pl2 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.2 pl2 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.8.2 pl2 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.8.2 pl2 ANY ANY
[19] CStrike RUN - cstrike_amxx_i386.so v1.8.2 pl2 ANY ANY
[20] Fun RUN - fun_amxx_i386.so v1.8.2 pl2 ANY ANY
20 plugins, 20 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] Admin Loader 3.2 neygomon admin_loader.am running
[ 2] FreshBans 1.3.8b kanagava fresh_bans_138. running
[ 3] DopBan 3.0.3b kanagava dop_ban303_.amx running
[ 4] WebHS 0.1 kanagava fb_web_online.a running
[ 5] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 6] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 7] Advanced MapChooser 1.3 neygomon map_chooser.amx running
[ 8] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 9] [182] StatsX RBS 18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 10] [182] Stats Configurat 17.10.30 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 11] [182] Army Ranks Ultim 18.03.24 SKAJIbnEJIb army_ranks_ulti running
[ 12] AR Double 14.12.02 SKAJIbnEJIb ar_double.amxx running
[ 13] [182] BonusMenu RBS 18.03.24 SKAJIbnEJIb bonusmenu_rbs.a running
[ 14] [182] Team Balancer 17.10.30 Sanlerus team_balancer.a running
[ 15] Ping Control 1.31 neygomon Ping_Control.am running
[ 16] [182] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 17] [ReAPI][182] Ultimate 17.08.28 SKAJIbnEJIb ultimate_gag_re running
[ 18] [182] Chat RBS 18.03.24 SKAJIbnEJIb chat_rbs.amxx running
[ 19] [ReAPI] Random Weapons 2.4.6 neugomon random_weapons_ running
[ 20] [ReAPI] No Team Flash 1.0 ReHLDS Team noteamflash.amx running
[ 21] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a running
[ 22] [182] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 23] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 24] GameName Changer 1.0 neugomon gamename_change running
[ 25] Advert Messages 1.22 neygomon adverts.amxx running
[ 26] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 27] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 28] Menus Front-End 1.5 neugomon menufront_end.a running
[ 29] Players Menu 1.7 neugomon players_menu.am running
[ 30] [182] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 31] [182] Skill ELO 18.03.24 SKAJIbnEJIb skill_elo.amxx running
[ 32] [182] CsStats MySQL 18.03.24 SKAJIbnEJIb csstats_mysql.a running
[ 33] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 34] VIP_by_Aki Private Aki_Lucky vip_by_Aki.amxx running
[ 35] Admin Check 1.51 OneEyed admin_check.amx running
[ 36] Bullet Damage 0.0.1 ConnorMcLeod bullet_damage.a running
[ 37] Lite AwpLimit 1.09 neygomon awp.amxx running
[ 38] Vip Test 1.0 daywer vip_test.amxx running
[ 39] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 40] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 41] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 42] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 43] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 44] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 45] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 46] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 47] Items Restrict 1.0 s1lent items_restrict. running
[ 48] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 49] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 50] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
[ 51] Onlinetime Awards 0.1 sonyx atop_vip.amxx running
[ 52] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
52 plugins, 52 running
- Автор плагина
- neygomon + @h1k3
- Версия плагина
- 2.4.6
- Исходный код
-
#include <amxmodx>
#include <reapi>
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 45 // Время разминки
#define NUM_RR 1 // Кол-во рестартов
//#define LATENCY 1.5 // Задержка между рестартами
#define PROTECTED 1 // Сколько секунд действует защита после возрождения; 0 - отключить (актуально для DM_MODE)
#define SOUND // Музыка под час разминки
#define DM_MODE // Бесконечный респавн на время разминки
#define STOP_PLUGS // Отключать плагины на время разминки
//#define OFF_RR // Отключать этот плагин на указанных картах
#define BLOCK // Запрет поднятия оружия с земли [по умолчанию выкл.]
//#define STOP_STATS // Отключать запись статистики на время разминки (Работает только с измененным CSStatsX SQL by serfreeman1337) [по умолчанию выкл.]
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#if defined SOUND
new const soundRR[][] = // Указывать звук, например 1.mp3
{
"sound/rr/privetrr1.mp3",
"sound/rr/RoundStart.mp3"
}
#endif
#if defined STOP_PLUGS
new g_arPlugins[][] = // Указывать название плагинов для отключения, например test.amxx
{
"vip_by_Aki.amxx",
"awp.amxx"
}
#endif
#if defined STOP_STATS
native stats_set_enabled(params_num)
#endif
new g_iHudSync;
new g_szWeapon[32];
new g_iWp;
new HookChain:fwd_NewRound,
HookChain:fwd_Spawn,
HookChain:fwd_GiveC4,
#if defined BLOCK
HookChain:fwd_BlockEntity,
#endif
#if defined DM_MODE
HookChain:fwd_Killed;
#endif
const TASK_TIMER_ID = 33264;
const TASK_PROTECTION_ID = 33464;
#if AMXX_VERSION_NUM < 183
new MaxClients;
#endif
public plugin_init()
{
register_plugin("[ReAPI] Random Weapons WarmUP", "2.4.6", "neugomon");
#if AMXX_VERSION_NUM < 183
MaxClients = get_maxplayers();
#endif
RegisterHookChain(RG_RoundEnd, "fwdRoundEnd", true);
DisableHookChain(fwd_NewRound = RegisterHookChain(RG_CSGameRules_CheckMapConditions, "fwdRoundStart", true));
DisableHookChain(fwd_Spawn = RegisterHookChain(RG_CBasePlayer_Spawn, "fwdPlayerSpawnPost", true));
DisableHookChain(fwd_GiveC4 = RegisterHookChain(RG_CSGameRules_GiveC4, "fwdGiveC4", false));
#if defined BLOCK
DisableHookChain(fwd_BlockEntity = RegisterHookChain(RG_CBasePlayer_HasRestrictItem, "fwdHasRestrictItemPre", false));
register_clcmd("drop", "ClCmd_Drop");
#endif
#if defined DM_MODE
DisableHookChain(fwd_Killed = RegisterHookChain(RG_CBasePlayer_Killed, "fwdPlayerKilledPost", true));
g_iHudSync = CreateHudSyncObj();
register_clcmd("joinclass", "clCmdJoinClass");
register_clcmd("menuselect","clCmdJoinClass");
#endif
state warmupOff;
#if defined OFF_RR
new sPref[][] = { "awp_", "aim_", "fy_", "$", "cs_", "35hp" }; // Указывать префиксы карт на которых плагин не будет работать
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref[i]) != -1)
{
pause("ad");
return;
}
}
#endif
}
public plugin_end() <warmupOff> {}
public plugin_end() <warmupOn>
{
finishWurmUp();
}
#if defined BLOCK
public fwdHasRestrictItemPre()
{
SetHookChainReturn(ATYPE_INTEGER, true);
return HC_SUPERCEDE;
}
public ClCmd_Drop() <warmupOff>
return PLUGIN_CONTINUE;
public ClCmd_Drop() <warmupOn>
return PLUGIN_HANDLED;
#endif
public client_putinserver(id)
{
remove_task(id + TASK_PROTECTION_ID)
}
#if defined SOUND
public plugin_precache()
{
for(new i = 0; i < sizeof(soundRR); i++)
{
precache_generic(soundRR[i]);
}
}
#endif
public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
if(event == ROUND_GAME_COMMENCE)
EnableHookChain(fwd_NewRound);
public fwdRoundStart()
{
state warmupOn;
#if defined SOUND
static cmd[64];
formatex(cmd, 63, "mp3 play ^"%s^"", soundRR[random(sizeof(soundRR))]);
client_cmd(0, "%s", cmd);
#endif
DisableHookChain(fwd_NewRound);
EnableHookChain(fwd_Spawn);
EnableHookChain(fwd_GiveC4);
#if defined STOP_STATS
stats_set_enabled(0);
#endif
set_cvar_string("mp_round_infinite", "1");
#if defined BLOCK
EnableHookChain(fwd_BlockEntity);
#endif
#if defined DM_MODE
EnableHookChain(fwd_Killed);
#endif
#if defined STOP_PLUGS
PluginController(1);
#endif
switch((g_iWp = random(13)))
{
case 0: formatex(g_szWeapon, charsmax(g_szWeapon), "SCOUT");
case 1: formatex(g_szWeapon, charsmax(g_szWeapon), "HEGRENADE");
case 2: formatex(g_szWeapon, charsmax(g_szWeapon), "AWP");
case 3: formatex(g_szWeapon, charsmax(g_szWeapon), "KNIFE");
case 4: formatex(g_szWeapon, charsmax(g_szWeapon), "DEAGLE");
case 5: formatex(g_szWeapon, charsmax(g_szWeapon), "FAMAS");
case 6: formatex(g_szWeapon, charsmax(g_szWeapon), "M3");
case 7: formatex(g_szWeapon, charsmax(g_szWeapon), "XM1014");
case 8: formatex(g_szWeapon, charsmax(g_szWeapon), "ELITE");
case 9: formatex(g_szWeapon, charsmax(g_szWeapon), "FIVESEVEN");
case 10: formatex(g_szWeapon, charsmax(g_szWeapon), "MP5");
case 11: formatex(g_szWeapon, charsmax(g_szWeapon), "M249");
case 12: formatex(g_szWeapon, charsmax(g_szWeapon), "P90");
}
set_task(1.0, "ShowTimer", .flags = "a", .repeat = TIME_RR);
}
#if defined DM_MODE
public clCmdJoinClass(id) <warmupOff>
return;
public clCmdJoinClass(id) <warmupOn>
if(get_member(id, m_iMenu) == Menu_ChooseAppearance)
set_task(0.5, "SpawnPlayer", id);
#endif
public fwdPlayerSpawnPost(const id)
{
if(!is_user_alive(id))
return;
BuyZone_ToogleSolid(SOLID_NOT);
SetProtection(id)
rg_remove_all_items(id);
set_member_game(m_bMapHasBuyZone, true);
rg_give_item(id, "weapon_knife");
switch(g_iWp)
{
case 0:
{
rg_give_item(id, "weapon_scout");
rg_set_user_bpammo(id, WEAPON_SCOUT, 90);
set_entvar(id, var_health, 35.0);
}
case 1:
{
rg_give_item(id, "weapon_hegrenade");
rg_set_user_bpammo(id, WEAPON_HEGRENADE, 2);
set_entvar(id, var_health, 25.0);
}
case 2:
{
rg_give_item(id, "weapon_awp");
rg_set_user_bpammo(id, WEAPON_AWP, 30);
}
case 3:
{
set_entvar(id, var_health, 1.0);
}
case 4:
{
rg_give_item(id, "weapon_deagle");
rg_set_user_bpammo(id, WEAPON_DEAGLE, 35);
}
case 5:
{
rg_give_item(id, "weapon_famas");
rg_set_user_bpammo(id, WEAPON_FAMAS, 90);
}
case 6:
{
rg_give_item(id, "weapon_xm1014");
rg_set_user_bpammo(id, WEAPON_XM1014, 32);
}
case 7:
{
rg_give_item(id, "weapon_m3");
rg_set_user_bpammo(id, WEAPON_M3, 32);
}
case 8:
{
rg_give_item(id, "weapon_elite");
rg_set_user_bpammo(id, WEAPON_ELITE, 120);
}
case 9:
{
rg_give_item(id, "weapon_fiveseven");
rg_set_user_bpammo(id, WEAPON_FIVESEVEN, 100);
}
case 10:
{
rg_give_item(id, "weapon_mp5navy");
rg_set_user_bpammo(id, WEAPON_MP5N, 120);
}
case 11:
{
rg_give_item(id, "weapon_m249");
rg_set_user_bpammo(id, WEAPON_M249, 200);
}
case 12:
{
rg_give_item(id, "weapon_p90");
rg_set_user_bpammo(id, WEAPON_P90, 100);
}
}
}
#if defined DM_MODE
public fwdPlayerKilledPost(pVictim)
set_task(1.0, "SpawnPlayer", pVictim);
#endif
public fwdGiveC4()
{
return HC_SUPERCEDE
}
public ShowTimer()
{
static timer = -1;
if(timer == -1) timer = TIME_RR;
switch(--timer)
{
case 0:
{
finishWurmUp();
timer = -1;
}
default:
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 0.9, .channel = -1);
show_hudmessage(0, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "Разминка на %s!^nРестарт через %d сек", g_szWeapon, timer);
}
}
}
public SV_Restart()
{
set_cvar_num("sv_restart", 1);
set_task(2.0, "End_RR");
}
public End_RR()
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 5.0, .channel = -1);
show_hudmessage(0, "[Статистика Включена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 5.0, .channel = -1);
show_hudmessage(0, "Разминка окончена!");
for(new i = 1; i <= MaxClients; i++)
{
if(is_user_alive(i))
{
rg_remove_items_by_slot(i, PRIMARY_WEAPON_SLOT);
}
}
}
#if defined DM_MODE
public SpawnPlayer(id)
{
if(!is_user_connected(id))
return;
if(is_user_alive(id))
return;
switch(get_member(id, m_iTeam))
{
case 1, 2: rg_round_respawn(id);
}
}
#endif
public SetProtection(id)
{
set_entvar(id, var_takedamage, DAMAGE_NO)
switch(get_member(id, m_iTeam))
{
case TEAM_TERRORIST: rg_set_rendering(id, kRenderFxGlowShell, 255, 0, 0, 10);
case TEAM_CT: rg_set_rendering(id, kRenderFxGlowShell, 0, 0, 255, 10);
}
remove_task(TASK_PROTECTION_ID + id)
set_task( PROTECTED.0, "EndProtection", TASK_PROTECTION_ID + id)
}
public EndProtection(TaskID)
{
new id = TaskID - TASK_PROTECTION_ID
if(!is_user_connected(id))
return
set_entvar(id, var_takedamage, DAMAGE_AIM)
rg_set_rendering(id)
}
finishWurmUp()
{
state warmupOff;
BuyZone_ToogleSolid(SOLID_TRIGGER);
DisableHookChain(fwd_Spawn);
DisableHookChain(fwd_GiveC4);
#if defined STOP_STATS
stats_set_enabled(1);
#endif
set_cvar_string("mp_round_infinite", "0");
#if defined BLOCK
DisableHookChain(fwd_BlockEntity);
#endif
#if defined DM_MODE
DisableHookChain(fwd_Killed);
#endif
#if defined STOP_PLUGS
PluginController(0);
#endif
#if NUM_RR > 1
set_task(LATENCY, "SV_Restart", .flags = "a", .repeat = NUM_RR);
#else
SV_Restart();
#endif
remove_task(TASK_TIMER_ID);
}
stock rg_set_rendering(index, fx = kRenderFxNone, r=255, g=255, b=255, amount=16)
{
new Float:RenderColor[3]
RenderColor[0] = float(r)
RenderColor[1] = float(g)
RenderColor[2] = float(b)
set_entvar(index, var_renderfx, fx)
set_entvar(index, var_rendercolor, RenderColor)
set_entvar(index, var_renderamt, float(amount))
}
stock PluginController(stop)
{
for(new i; i < sizeof g_arPlugins; i++)
{
if(stop)pause ("ac", g_arPlugins[i]);
else unpause("ac", g_arPlugins[i]);
}
}
stock BuyZone_ToogleSolid(const solid)
{
new entityIndex = 0;
while ((entityIndex = rg_find_ent_by_class(entityIndex, "func_buyzone")))
set_entvar(entityIndex, var_solid, solid);
}
В архиве 2 трека в mp3 формате, которые не проигрываются. Проблема решена.
4 Авг 2018
В этой теме было размещено решение! Перейти к решению.
Вложения
-
451.2 KB Просмотры: 187