Участник
Пользователь
- Сообщения
- 194
- Реакции
- 43
- Помог
- 4 раз(а)
- Ошибка
-
Run time error 2 (plugin "warmup.amxx") (forward "fwdGiveC4")
L 07/28/2024 - 23:00:15: Can't suppress original function call without new return value set, so you must call
- ОС
- Linux
- Amx Mod X
-
v1.9.0.5294
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.14.0.833-dev
Build date: 14:39:02 Jun 04 2024 (3706)
Build from: https://github.com/dreamstalker/rehlds/commit/9c1e843
- ReGamedll
-
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:48 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
- Версия Metamod
-
Metamod-r v1.3.0.149, API (5:13)
Metamod-r build: 11:31:17 Apr 23 2024
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/603a257
- Список метамодулей
-
meta list
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.2 Beta 3 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.2.0.13 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 8] Print Center Fix RUN - printcenterfix_mm_i386.so v2.0.1 ini ANY ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.4.3 ini Chlvl ANY
[10] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[11] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[12] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.1.5 ini Start ANY
[13] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[14] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl7 ANY Never
[15] Admins Kit RUN - adminskit_amxx_i386.so v2.1.1 pl7 ANY Never
[16] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl7 ANY Never
[17] IPHub Client RUN - iphubclient_amxx_i386.so v1.0.1 pl7 ANY Never
[18] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[19] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl7 ANY ANY
[20] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[21] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[22] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[23] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[24] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[25] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
[26] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl7 ANY ANY
26 plugins, 26 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] [190] Vanga Detector 23.07.29 SKAJIbnEJIb & Pr vanga_detector. running
[ 2] DopBan 3.0.9b kanagava dop_ban.amxx running
[ 3] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 4] GameCMS_API 5.6.3 zhorzh78 gamecms_api.amx running
[ 5] FreshBans 1.4.8b kanagava fresh_bans.amxx running
[ 6] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 7] ScreenMaker 1.1 neygomon screen_maker.am running
[ 8] Bypass Guard 1.0.9 mx?! bypass_guard.am running
[ 9] [BG] Provider: IPHub-C 1.3 mx?! bg_provider_iph running
[ 10] [BG] Supervisor 0.4 mx?! bg_supervisor.a running
[ 11] HPP_BLOCK 1.2 UNKNOWN + bristo hpp_blocker.amx running
[ 12] Unreal Cheater Cry 1.3 Karaulov unreal_cheater_ running
[ 13] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 14] Menus Front-End 1.4 gyxoBka server_menu.amx running
[ 15] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 16] Players Menu 1.7 neugomon plmenu.amxx running
[ 17] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 18] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 19] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 20] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 21] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 22] AES: StatsX 0.6 Vega[R serfreeman1337/s aes_statsx_cstr running
[ 23] Items Restrict 1.0 ReHLDS Team items_restrict. running
[ 24] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 25] Advanced Ultimate Weap 0.1.1b steelzzz auw.amxx running
[ 26] VIP System 0.0.8f steelzorrr vip_system.amxx running
[ 27] AWP Limit 0.12 mx?! awp_limit.amxx running
[ 28] AFK Control 1.0 mx?! afk_control.amx running
[ 29] Reklama 20.05.2020 mx?! reklama.amxx running
[ 30] DemoRecoder 1.2 neygomon amx_demorec.amx running
[ 31] C4 Timer 0.1 unnamed c4_timer.amxx running
[ 32] [ReAPI:AMXX] Buy Nades 0.0.4 steelzorrr buy_nades_limit running
[ 33] Custom Smoke 1.2.1 medusa custom_smoke.am running
[ 34] GameName Changer 1.0 mx?! gamename_change running
[ 35] Advanced Kill Assists 1.5 Xelson kill_assist.amx running
[ 36] MOTD Model 1.1.0 fl0wer motd_model.amxx running
[ 37] Mode 2x2 2.5re s1lent mode.amxx running
[ 38] Killer ScreenFade 0.0.6 Vaqtincha killer_screenfa running
[ 39] Parachute 1.2 Emma Jule parachute.amxx running
[ 38] Ping Control 1.2 mx?! ping_control.am running
[ 39] [ReAPI] Block Fire in 3.1.0 F@nt0M reapi_block_fit running
[ 40] Reset Score 0.1 unnamed resetscore.amxx running
[ 41] [ReAPI] Healthnade 0.0.16f F@nt0M + mx?! reapi_healthnad running
[ 42] Injection Med-Kit 2.3.0 Emma Jule Injection.amxx running
[ 43] Tiger wave damage 0.1 bizon tiger_wave_dama running
[ 44] Team Grenade Trails 1.1.0 fl0wer grenade_trails_ running
[ 45] Simple Damager 2.1.0 fl0wer simple_damager. running
[ 46] CSGO Revolver R8 1.0 Vaqtincha csgo_r8.amxx running
[ 47] [ReAPI] Random Weapons 2.4.9+1 neugomon/h1k3 warmup.amxx running
[ 48] ChatAdditions: Core v1.9.4 Sergey Shorokhov ChatAdditions_C debug
[ 49] ChatAdditions: SQLite v1.9.4 Sergey Shorokhov CA_Storage_SQLi debug
[ 50] CA: Mute v1.9.4 Sergey Shorokhov CA_Mute.amxx debug
[ 51] CA: Gag v1.9.4 Sergey Shorokhov CA_Gag.amxx debug
[ 52] Custom Player Models A 0.2.6 F@nt0M & BlackSi custom_player_m running
[ 53] Custom Player Models C 0.2.2 BlackSignature custom_player_m running
[ 54] Custom Player Models T 0.2.1 BlackSignature custom_player_m running
[ 55] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 56] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 57] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 58] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 59] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 60] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 61] Map Manager: Core 3.3.1 Mistrick map_manager_cor running
[ 62] Map Manager: Scheduler 0.2.3 Mistrick map_manager_sch running
[ 63] Map Manager: Admin men 0.6.3 d3m37r4 map_manager_adm running
[ 64] Map Manager: Rtv 0.1.5 Mistrick map_manager_rtv running
[ 65] Map Manager: Nominatio 0.3.6 Mistrick map_manager_nom debug
[ 66] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 67] Map Manager: Online so 0.0.4 Mistrick map_manager_onl debug
[ 68] Map Manager: Effects 0.1.3 Mistrick map_manager_eff running
[ 69] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 70] Map Manager: Advanced 0.1.0 Mistrick map_manager_adv running
[ 71] Block flooding change 0.1.1 bizon | Radius block_flooding_ running
[ 72] [CM] GameCMS Prefixes 1.0.1m ArKaNeMaN + mx?! cm_gamecms_pref running
[ 73] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
73 plugins, 73 running
- Автор плагина
- 2.4.9+1
- Версия плагина
- neugomon/h1k3
- Исходный код
-
#include <amxmodx>
#include <reapi>
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 45 // Время разминки
#define NUM_RR 1 // Кол-во рестартов
#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
{
"bonus_steam.amxx",
"reapi_healthnade.amxx",
"vip_system.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+1", "neugomon/h1k3");
#if defined OFF_RR
new sPref[][] = { "awp_", "aim_", "fy_", "$", "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
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;
}
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(6))
{
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), "Famas");
case 3: formatex(g_szWeapon, charsmax(g_szWeapon), "Galil");
case 4: formatex(g_szWeapon, charsmax(g_szWeapon), "Гранатах");
case 5: formatex(g_szWeapon, charsmax(g_szWeapon), "Knife");
}
}
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);
rg_give_item(id, "weapon_knife");
}
case 1:
{
rg_give_item(id, "weapon_ak47");
rg_set_user_bpammo(id, WEAPON_AK47, 90);
rg_give_item(id, "weapon_knife");
}
case 2:
{
rg_give_item(id, "weapon_famas");
rg_set_user_bpammo(id, WEAPON_FAMAS, 90);
rg_give_item(id, "weapon_knife");
}
case 3:
{
rg_give_item(id, "weapon_galil");
rg_set_user_bpammo(id, WEAPON_GALIL, 90);
rg_give_item(id, "weapon_knife");
}
case 4:
{
rg_give_item(id, "weapon_hegrenade");
rg_set_user_bpammo(id, WEAPON_HEGRENADE, 8);
rg_give_item(id, "weapon_knife");
}
case 5:
{
set_entvar(id, var_health, 35.0);
}
}
}
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);
}
в консоли сервера постоянно спамит ошибку
Run time error 2 (plugin "warmup.amxx") (forward "fwdGiveC4")
L 07/28/2024 - 23:00:15: Can't suppress original function call without new return value set, so you must call
Run time error 2 (plugin "warmup.amxx") (forward "fwdGiveC4")
L 07/28/2024 - 23:00:15: Can't suppress original function call without new return value set, so you must call
В этой теме было размещено решение! Перейти к решению.
Вложения
-
10.6 KB Просмотры: 43
Последнее редактирование: