WarmUP

Сообщения
58
Реакции
21
Ошибка
В работе плагина
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5241 (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: Jan 30 2019 07:09:07
Built from: https://github.com/alliedmodders/amxmodx/commit/2110037
Build ID: 5241:2110037
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.695-dev
Build date: 15:54:29 Apr 6 2020 (2186)
Build from: https://github.com/dreamstalker/rehlds/commit/7513e71
ReGamedll
ReGameDLL version: 5.13.0.427-dev
Build date: 10:24:40 Dec 14 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/27b2a8c
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5241 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 9] Yet Another POD-Bot RUN - yapb.so v2.9 ini Chlvl ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[11] AuthEmu RUN - authemu_amxx_i386.so v4.2.12.311-dev+m pl3 ANY Never
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[14] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl3 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5241 pl3 ANY ANY
[18] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl3 ANY Never
18 plugins, 18 running
Список плагинов
[ 1] gamecms_api                   5.4.4    zhorzh78                       gamecms_api_5.4.4.amxx ; running 
[ 2] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 3] Admin Loader 3.5 neygomon admin_loader3.5 running
[ 4] Menus Front-End 1.5 neugomon menufront_enda. running
[ 5] Player achievs 1.3 zhorzh78 player_achievs_1.3.amxx running
[ 6] Special achievs 1.3 zhorzh78 special_achievs_1.3.amxx running
[ 7] Csstatsx sql 0.7.4+2 serfreeman1337 csstatsx_sql.amxx running
[ 8] Csstatsx playtime awards 0.2 serfreeman1337 csstatsx_playtime_awards.amxx running
[ 9] Aes_statsx_cstrike 0.5+1 serfreeman1337 aes_statsx_cstrike.amxx running
[ 10] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 11] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 12] AuthEmu API 1.0 Dev-MS Team authemu.amxx running
[ 13] Advert Messages 1.2 neygomon adverts.amxx running
[ 14] say /adminka 1.1 Pa1n say_admin.amxx running
[ 15] Real Nade Drops 0.4 VEN realnadedrops.a running
[ 16] Back Weapons 1.87 hoboman313/cheap backweapons.amx running
[ 17] Reset Score 1.0 Silenttt resetscore.amxx running
[ 18] mute 1.0 Aziz mute.amxx running
[ 19] Admin Check 1.51 OneEyed admin_check.amx running
[ 20]gamecms bonus zhorzh78 gamecms_bonus.amxx running
[ 21] gamecms achievs core 1.3 zhorzh78 gamecms_achievs_core_1.3.amxx running
[ 22] bomb achievs 1.2 zhorzh78 bomb_achievs_1.2.amxx running
[ 23] Menu System 0.1.2 serfreeman1337 menuSystem.amxx running
[ 24] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 25] AMXX Gag 1.3 xPaw & Exolent amx_gag.amxx running
[ 26] VIP Tag 0.1 c-s.net.ua VIP_tag_tab.amx running
[ 27] Connect Admin/Vip 0.1 neugomon.ru, Rem connectusers.am running
[ 28] BestAes 1.0 xz_kto bestAES.amxx running
[ 29] GameName Wins 0.7.1 w0w gamename_wins.a running
[ 30] [AMXX] Transfer Bonus 01.05.2017 Dimon4ik Amx_Transfer_Bo running
[ 31] Advanced Kill Assists 1.2c Xelson kill_assist.amx running
[ 32] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 33] Admin Commands 1.9.0.5241 AMXX Dev Team admincmd.amxx running
[ 34] Admin Help 1.9.0.5241 AMXX Dev Team adminhelp.amxx running
[ 35] Slots Reservation 1.9.0.5241 AMXX Dev Team adminslots.amxx running
[ 36] Commands Menu 1.9.0.5241 AMXX Dev Team cmdmenu.amxx running
[ 37] Players Menu 1.9.0.5241 AMXX Dev Team plmenu.amxx running
[ 38] Maps Menu 1.9.0.5241 AMXX Dev Team mapsmenu.amxx running
[ 39] Plugin Menu 1.9.0.5241 AMXX Dev Team pluginmenu.amxx running
[ 40] Admin Chat 1.9.0.5241 AMXX Dev Team adminchat.amxx running
[ 41] Anti Flood 1.9.0.5241 AMXX Dev Team antiflood.amxx running
[ 42] Scrolling Message 1.9.0.5241 AMXX Dev Team scrollmsg.amxx running
[ 43] Info. Messages 1.9.0.5241 AMXX Dev Team imessage.amxx running
[ 44] Admin Votes 1.9.0.5241 AMXX Dev Team adminvote.amxx running
[ 45] TimeLeft 1.9.0.5241 AMXX Dev Team timeleft.amxx running
[ 46] Pause Plugins 1.9.0.5241 AMXX Dev Team pausecfg.amxx running
[ 47] Stats Configuration 1.9.0.5241 AMXX Dev Team statscfg.amxx running
[ 48] StatsX 1.9.0.5263 AMXX Dev Team statsx.amxx running
[ 49] Map Manager: Core 3.0.7 Mistrick map_manager_cor running
[ 50] Map Manager: Scheduler 0.1.5 Mistrick map_manager_sch running
[ 51] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 52] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 53] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 54] Map Manager: Effects 0.0.9 Mistrick map_manager_eff running
[ 55] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 56] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 57] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 58] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 59] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 60] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 61] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 62] AES: Status Info 0.1 serfreeman1337 aes_status_info running
[ 63] AES Bonus: Flags 0.1 Sonyx aes_bonus_flags running
[ 64] Give_AES_EXP 0.1 baton4ik48 aes_give_exp.am running
64 plugins, 64 running
Автор плагина
neygomon + h1k3
Версия плагина
2.4.9
Исходный код
#include <amxmodx>
#include <reapi>

/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define TIME_RR 40 // Время разминки
#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
{
"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);
}
Тестил сейчас плагин этот и АЕС статистика опыта и бонусов пишется , и Skill тоже меняется
Это с раскоментированным #define STOP_STATS
Если АЕС тормозить через #define STOP_PLUGS , то он потом криво запускается и не считает уже опыт и бонусы.(как будто конфиг не подгуражет aes.cfg) Потому что в др плагинах где есть выдача опыта, опыт начисляется, а за убийства и тд, нет.

Ну и скилл не понятно по чему меняется , хотя стоит CSStatsX SQL by serfreeman1337
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу