- Ошибка
-
Когда идет разминка, на всех оружия идет hud информер сверху, но при разминке на ножах нету, скрин ниже
- ОС
- Linux
- Amx Mod X
-
1.9.0
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.723-dev
Build date: 18:29:39 Mar 23 2021 (2537)
Build from: https://github.com/dreamstalker/rehlds/commit/8aca7cf
- ReGamedll
-
"game_version" is "5.21.0.534-dev"
- Версия Metamod
-
Metamod-r v1.3.78, API (5:13)
Metamod-r build: 14:04:19 Jul 21 2017 (1.3.78)
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/7ffbf8f (asmodai)
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0-d ini Start ANY
[ 2] Rechecker RUN - rechecker_mm_i38 v2.3 ini Chlvl ANY
[ 3] WHBlocker RUN - whblocker_mm_i38 v1.5.696 ini Chlvl ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder. v2017RC5 ini ANY ANY
[ 5] Reunion RUN - reunion_mm_i386. v0.1.92d ini Start Never
[ 6] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 7] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 8] ReAPI RUN - reapi_amxx_i386. v5.20.0. pl1 ANY Never
[ 9] ReAimDetector RUN - reaimdetector_am v0.2.2 pl1 ANY Never
[10] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0-d pl1 ANY ANY
[11] MySQL RUN - mysql_amxx_i386. v1.9.0-d pl1 ANY ANY
[12] Engine RUN - engine_amxx_i386 v1.9.0-d pl1 ANY ANY
[13] GeoIP RUN - geoip_amxx_i386. v1.9.0-d pl1 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.9.0-d pl1 ANY ANY
[15] Fun RUN - fun_amxx_i386.so v1.9.0-d pl1 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx v1.9.0-d pl1 ANY ANY
[17] SxGeo RUN - sxgeo_amxx_i386. v2.2 pl1 ANY Never
[18] CSX RUN - csx_amxx_i386.so v1.9.0-d pl1 ANY ANY
18 plugins, 18 running
- Список плагинов
-
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] Aliases checker 1.0.6 kanagava alias_detector_ running
[ 3] FreshBans 1.4.5b kanagava fresh_bans_145- running
[ 4] [190] Analizator 20.06.06 SKAJIbnEJIb analizator.amxx running
[ 5] Menus Front-End 20.06.06 SKAJIbnEJIb & AM amxmodmenu_rbs. running
[ 6] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 7] Parachute 2.0 Leo_[BH] parachute.amxx running
[ 8] [190] Cvar On Map 20.06.06 SKAJIbnEJIb cvar_on_map.amx running
[ 9] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 10] Admin Base 1.9.0-dev+ AMXX Dev Team admin.amxx running
[ 11] [190] VIP RBS 21.08.23BE SKAJIbnEJIb vip_rbs.amxx running
[ 12] [190] Ultimate Weapons 21.03.23 SKAJIbnEJIb ultimate_weapon running
[ 13] [190] Ultimate Gag 21.01.02BE SKAJIbnEJIb ultimate_gag.am running
[ 14] [190] Chat RBS 20.10.24BE SKAJIbnEJIb chat_rbs.amxx running
[ 15] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 16] [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 17] [190] Skill ELO 21.08.22BE SKAJIbnEJIb skill_elo.amxx running
[ 18] [190] CsStats MySQL 21.08.22BE SKAJIbnEJIb csstats_mysql.a running
[ 19] [190] Kill Assist RBS 20.06.06 SKAJIbnEJIb & Di killassist_rbs. running
[ 20] [190] MapChooser RBS 20.08.02 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 21] [190] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 22] [190] No Team Flash 20.06.06 SKAJIbnEJIb NoTeamFlash.amx running
[ 23] [190] Stats Configurat 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 24] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 25] [190] Stimulation RBS 20.06.06 SKAJIbnEJIb stimulation_rbs running
[ 26] [190] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 27] [190] Ultimate Flags 21.03.24BE SKAJIbnEJIb ultimate_flags. running
[ 28] [190] Ultimate Informe 21.03.23 SKAJIbnEJIb ultimate_inform running
[ 29] [190] WallHack Viewer 20.06.06 SKAJIbnEJIb wallhack_viewer running
[ 30] [190] SlayLosers RBS 20.06.06 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 31] [190] Whois RBS 20.06.06 SKAJIbnEJIb whois_rbs.amxx running
[ 32] Admin Commands 1.9.0-dev+ AMXX Dev Team admincmd.amxx running
[ 33] Slots Reservation 1.9.0-dev+ AMXX Dev Team adminslots.amxx running
[ 34] Commands Menu 1.9.0-dev+ AMXX Dev Team cmdmenu.amxx running
[ 35] Players Menu 1.7 neugomon players_menu.am running
[ 36] [190] MapsMenu RBS 20.06.06 SKAJIbnEJIb & AM mapsmenu_rbs.am running
[ 37] Plugin Menu 1.9.0-dev+ AMXX Dev Team pluginmenu.amxx running
[ 38] Anti Flood 1.9.0-dev+ AMXX Dev Team antiflood.amxx running
[ 39] Admin Chat 1.9.0-dev+ AMXX Dev Team adminchat.amxx running
[ 40] Admin Votes 1.9.0-dev+ AMXX Dev Team adminvote.amxx running
[ 41] Pause Plugins 1.9.0-dev+ AMXX Dev Team pausecfg.amxx running
[ 42] Restrict Weapons 1.9.0-dev+ AMXX Dev Team restmenu.amxx running
[ 43] [SxGeo] Connect Info 1.0 s1lent sxgeo_connect_i running
[ 44] Reset_Score 1.0 Silenttt Fixed b Resetscore.amxx running
[ 45] Damager 1.0 Prayer damager.amxx running
[ 46] [190] Parachute RBS 20.08.22BE SKAJIbnEJIb & KR parachute_rbs.a running
[ 47] [190] Block Reconnect 20.06.06 ShaTalKiN Block_Reconnect running
[ 48] Fake Ping 1.1 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 49] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_FIT running
[ 50] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 51] Mode 2x2 2.5re s1lent mode.amxx running
[ 52] [190] Bets RBS 20.06.06 SKAJIbnEJIb bets_rbs.amxx running
[ 53] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 54] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 55] GameName Changer 1.0 neugomon gamename.amxx running
[ 56] [190] AfkKicker RBS 21.08.22BE SKAJIbnEJIb afkkicker_rbs.a running
[ 57] No Bhop and SGS/DDRun 1.1 Denzer no_bhop_sgs.amx running
[ 58] Sound CSO 1.2 TBONTB Sound_CSO.amxx running
[ 59] Block Radio Commands 1.0 d3m37r4 block_radiocmd. running
[ 60] AMX Admin Model 1.1.1 whitemike amx_adminmodel. running
[ 61] C4 Timer 1.1 SAMURAI & Remod: c4_timer.amxx running
[ 62] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 63] [190] Top Award RBS 20.06.06 SKAJIbnEJIb topaward_rbs.am running
[ 64] [ReAPI] Ghost after de 0.0.2 steelzzz ghost.amxx running
[ 65] Admin Free Look 2.0 Jim admin_freelook. running
[ 66] [ReAPI] Healthnade 0.0.2 F@nt0M reapi_healthnad running
[ 67] CSNadeDrops 0.14 Avalanche csnadedrops.amx running
[ 68] [190] Map Spawns Edito 20.06.06 SKAJIbnEJIb & iG MapSpawnsEditor running
68 plugins, 68 running
- Автор плагина
- h1k3
- Версия плагина
- 2.4.9
- Исходный код
-
#include <amxmodx>
#include <reapi>
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 40 // Время разминки
#define NUM_RR 2 // Кол-во рестартов
#define LATENCY 1.5 // Задержка между рестартами
#define DM_MODE 1 // Возрождение после смерти; 0 - отключить (будет длится раунд или до победы)
#define PROTECTED 2 // Сколько секунд действует защита после возрождения (актуально для DM_MODE); 0 - отключить
#define SOUND // Музыка под час разминки
#define STOP_PLUGS // Отключать плагины на время разминки
#define OFF_RR // Отключать этот плагин на указанных картах
//#define REMOVE_MAP_WPN // Удалять ентити мешающие разминке на картах типа: awp_, 35hp_ и т.п. [по умолчанию выкл.]
//#define BLOCK // Запрет поднятия оружия с земли (не актуально при вкл. #define REMOVE_MAP_WPN) [по умолчанию выкл.]
//#define STOP_STATS // Отключать запись статистики на время разминки CSStatsX SQL by serfreeman1337 0.7.4+1 [по умолчанию выкл.]
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#if defined REMOVE_MAP_WPN
#include <hamsandwich>
#endif
#if defined SOUND
new const soundRR[][] = // Указывать звук, например 1.mp3
{
"sound/rww/RoundStart.mp3",
// "sound/rww/2.mp3",
// "sound/rww/3.mp3"
}
#endif
#if defined STOP_PLUGS
new g_arPlugins[][] = // Указывать название плагинов для отключения, например test.amxx
{
"test.amxx",
"test2.amxx"
}
#endif
#if DM_MODE == 0
new HookChain:fwd_RRound;
new g_iRound;
#endif
#if defined REMOVE_MAP_WPN
new HamHook:fwd_Equip,
HamHook:fwd_WpnStrip,
HamHook:fwd_Entity;
#endif
#if defined STOP_STATS
new g_iHudSync;
#endif
new g_szWeapon[32];
new g_iImmunuty, g_iRespawn, g_iWp, g_iHudSync2;
new HookChain:fwd_NewRound,
#if defined BLOCK
HookChain:fwd_BlockEntity,
#endif
HookChain:fwd_Spawn,
HookChain:fwd_GiveC4;
const TASK_TIMER_ID = 33264;
public plugin_init()
{
register_plugin("[ReAPI] Random Weapons WarmUP", "2.4.9", "neugomon/h1k3");
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 REMOVE_MAP_WPN
DisableHamForward(fwd_Equip = RegisterHam(Ham_Use, "game_player_equip", "CGamePlayerEquip_Use", false));
DisableHamForward(fwd_WpnStrip = RegisterHam(Ham_Use, "player_weaponstrip", "CStripWeapons_Use", false));
DisableHamForward(fwd_Entity = RegisterHam(Ham_CS_Restart, "armoury_entity", "CArmoury_Restart", false));
#endif
#if DM_MODE == 0
EnableHookChain(fwd_RRound = RegisterHookChain(RG_CSGameRules_RestartRound, "fwdRestartRound_Pre"));
#endif
#if defined BLOCK
DisableHookChain(fwd_BlockEntity = RegisterHookChain(RG_CBasePlayer_HasRestrictItem, "fwdHasRestrictItemPre", false));
register_clcmd("drop", "ClCmd_Drop");
#endif
g_iImmunuty = get_cvar_pointer("mp_respawn_immunitytime");
g_iRespawn = get_cvar_pointer("mp_forcerespawn");
#if defined STOP_STATS
g_iHudSync = CreateHudSyncObj();
#endif
g_iHudSync2 = CreateHudSyncObj();
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
#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 REMOVE_MAP_WPN
EnableHamForward(fwd_Equip);
EnableHamForward(fwd_WpnStrip);
EnableHamForward(fwd_Entity);
#endif
DisableHookChain(fwd_NewRound);
EnableHookChain(fwd_Spawn);
EnableHookChain(fwd_GiveC4);
set_pcvar_num(g_iRespawn, DM_MODE);
set_pcvar_num(g_iImmunuty, PROTECTED);
#if DM_MODE >= 1
set_cvar_string("mp_round_infinite", "1");
set_task(1.0, "Show_Timer", .flags = "a", .repeat = TIME_RR);
#endif
#if DM_MODE == 0
set_task(1.0, "Hud_Message", .flags = "a", .repeat = 25 );
#endif
#if defined SOUND
static cmd[64];
formatex(cmd, 63, "mp3 play ^"%s^"", soundRR[random(sizeof(soundRR))]);
client_cmd(0, "%s", cmd);
#endif
#if defined STOP_STATS
set_cvar_num("csstats_pause", 1);
#endif
#if defined BLOCK
EnableHookChain(fwd_BlockEntity);
#endif
#if defined STOP_PLUGS
PluginController(1);
#endif
switch(g_iWp = random(8))
{
case 0: formatex(g_szWeapon, charsmax(g_szWeapon), "M4A1");
case 1: formatex(g_szWeapon, charsmax(g_szWeapon), "AK-47");
case 2: formatex(g_szWeapon, charsmax(g_szWeapon), "МP5");
case 3: formatex(g_szWeapon, charsmax(g_szWeapon), "SG-550");
case 4: formatex(g_szWeapon, charsmax(g_szWeapon), "Famas");
case 5: formatex(g_szWeapon, charsmax(g_szWeapon), "SCOUT");
case 6: formatex(g_szWeapon, charsmax(g_szWeapon), "XM1014");
case 7: formatex(g_szWeapon, charsmax(g_szWeapon), "M3");
}
}
public fwdPlayerSpawnPost(const id)
{
if(!is_user_alive(id))
return;
#if defined REMOVE_MAP_WPN
InvisibilityArmourys();
#endif
BuyZone_ToogleSolid(SOLID_NOT);
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_m4a1");
rg_set_user_bpammo(id, WEAPON_M4A1, 90);
}
case 1:
{
rg_give_item(id, "weapon_ak47");
rg_set_user_bpammo(id, WEAPON_AK47, 90);
}
case 2:
{
rg_give_item(id, "weapon_mp5navy");
rg_set_user_bpammo(id, WEAPON_MP5N, 120);
}
case 3:
{
rg_give_item(id, "weapon_sg550");
rg_set_user_bpammo(id, WEAPON_SG550, 90);
}
case 4:
{
rg_give_item(id, "weapon_famas");
rg_set_user_bpammo(id, WEAPON_FAMAS, 90);
}
case 5:
{
rg_give_item(id, "weapon_scout");
rg_set_user_bpammo(id, WEAPON_SCOUT, 30);
}
case 6:
{
rg_give_item(id, "weapon_xm1014");
rg_set_user_bpammo(id, WEAPON_XM1014, 50);
}
case 7:
{
rg_give_item(id, "weapon_m3");
rg_set_user_bpammo(id, WEAPON_M3, 50);
}
}
}
public fwdGiveC4()
{
return HC_SUPERCEDE;
}
#if DM_MODE >= 1
public Show_Timer()
{
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);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!^nРестарт через %d сек", g_szWeapon, timer);
}
}
}
#endif
#if DM_MODE == 0
public fwdRestartRound_Pre()
{
g_iRound++;
if(g_iRound >= 2) {
DisableHookChain(fwd_RRound);
finishWurmUp();
}
}
public Hud_Message()
{
#if defined STOP_STATS
set_hudmessage(255, 0, 0, .x = -1.0, .y = 0.05, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Отключена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 0.9, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка на %s!", g_szWeapon);
}
#endif
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);
ShowSyncHudMsg(0, g_iHudSync, "[Статистика Включена]");
#endif
set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.08, .holdtime = 5.0, .channel = -1);
ShowSyncHudMsg(0, g_iHudSync2, "Разминка окончена!");
for(new i = 1; i <= MaxClients; i++)
{
if(is_user_alive(i))
{
rg_remove_items_by_slot(i, PRIMARY_WEAPON_SLOT);
}
}
}
#if defined REMOVE_MAP_WPN
public CArmoury_Restart(const pArmoury)
{
return HAM_SUPERCEDE;
}
public CGamePlayerEquip_Use()
{
return HAM_SUPERCEDE;
}
public CStripWeapons_Use()
{
return HAM_SUPERCEDE;
}
InvisibilityArmourys()
{
new pArmoury = NULLENT
while((pArmoury = rg_find_ent_by_class(pArmoury, "armoury_entity")))
{
if(get_member(pArmoury, m_Armoury_iCount) > 0)
{
set_entvar(pArmoury, var_effects, get_entvar(pArmoury, var_effects) | EF_NODRAW)
set_entvar(pArmoury, var_solid, SOLID_NOT)
set_member(pArmoury, m_Armoury_iCount, 0)
}
}
}
#endif
finishWurmUp()
{
state warmupOff;
BuyZone_ToogleSolid(SOLID_TRIGGER);
#if defined REMOVE_MAP_WPN
DisableHamForward(fwd_Equip);
DisableHamForward(fwd_WpnStrip);
DisableHamForward(fwd_Entity);
#endif
DisableHookChain(fwd_Spawn);
DisableHookChain(fwd_GiveC4);
set_cvar_string("mp_forcerespawn", "0");
set_cvar_string("mp_respawn_immunitytime", "0");
set_cvar_string("mp_round_infinite", "0");
#if defined STOP_STATS
set_cvar_num("csstats_pause", 0);
#endif
#if defined BLOCK
DisableHookChain(fwd_BlockEntity);
#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 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);
}
Помогите пожалуйста исправить ошибку, когда идет разминка, на всех оружия идет hud информер сверху, но при разминке на ножах нету, и было бы неплохо если бы подсказали как убрать гранаты во время разминки у випов, при кампиляции ничего не менял