Участник
Пользователь
- Сообщения
- 101
- Реакции
- 18
- Ошибка
-
L 06/21/2024 - 18:09:14: [ReAPI] Reunion: isn't available
L 06/21/2024 - 18:09:14: [AMXX] Displaying debug trace (plugin "acs_injection.amxx", version "1.0.6.2")
L 06/21/2024 - 18:09:14: [AMXX] Run time error 10: native error (native "REU_GetAuthtype")
L 06/21/2024 - 18:09:14: [AMXX] [0] acs_injection.sma::client_putinserver (line 71)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5294 (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: Dec 3 2021 15:54:56
Built from: https://github.com/alliedmodders/amxmodx/commit/363871a
Build ID: 5294:363871a
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.14.0.833-dev-mpatch
Build date: 14:50:08 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
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion fail load reunion_mm_i386.so v0.2.0.6 ini Start Never
[ 2] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[ 3] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 5] Revoice fail load revoice_plus_mm.so v2.1.0 ini ANY Never
[ 6] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.1.5 ini Start ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.4.3 ini Chlvl ANY
[ 8] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 9] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[10] SafeNameAndChat RUN - SafeNameAndChat.so v1.2 Beta 3 ini ANY ANY
[11] ReAuthCheck fail load reauthcheck_mm_i386.so v0.1.6 ini Start Never
[12] Accuracy Fix (ACS) RUN - accuracyfix_mm.so v1.0.7a ini ANY ANY
[13] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[14] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl4 ANY Never
[15] Hide Cvars RUN - hidecvars_amxx_i386.so v1.0 pl4 ANY ANY
[16] AuthEmu fail load authemu_amxx_i386.so v5.2.12.431 pl4 ANY Never
[17] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[18] IPHub Client RUN - iphubclient_amxx_i386.so v1.0.1 pl4 ANY Never
[19] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[20] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[21] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl4 ANY Never
[22] Amxx Easy Http RUN - easy_http_amxx_i386.so v1.3.0 pl4 ANY ANY
[23] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[24] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
[25] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl4 ANY ANY
25 plugins, 21 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] AMXBans: Core Gm 1.6 Larte Team amxbans_core.am running
[ 2] AMXBans: Main Gm 1.6 Larte Team amxbans_main.am debug
[ 3] FreshBans 1.4.8b kanagava fresh_bans_148- running
[ 4] Bypass Guard 1.0.9 mx?! bypass_guard.am running
[ 5] [BG] Provider: IPHub-C 1.3 mx?! bg_provider_iph running
[ 6] [BG] Supervisor 0.4 mx?! bg_supervisor.a running
[ 7] [BG] Provider: GeoIP 0.3 mx?! bg_provider_geo running
[ 8] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 9] [190] Vanga Detector 23.07.29 SKAJIbnEJIb & Pr vanga_detector. running
[ 10] Vac Ban Status 0.0.1 Albertio vac_ban_status. running
[ 11] Ping Control 1.2 mx?! ping_control.am running
[ 12] unknown unknown unknown authemu.amxx bad load
[ 13] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 14] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
[ 15] ACS Vote 1.2.6 DEV-CS.RU acs_vote.amxx debug
[ 16] ACS Mute 1.0.1.1 ACADEMY-CS.RU acs_mute.amxx running
[ 17] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 18] Music Connection 1.0.1 Jumper Music_Connectio running
[ 19] Weapon Model Replacer 0.1 Vaqtincha WeaponModelRepl running
[ 20] GameCMS_API 5.6.3 zhorzh78 gamecms_api_5.6 running
[ 21] GameCMS_Registration 1.5 nb zhorzh78 gamecms_registr running
[ 22] Players Menu 22.11.15 SKAJIbnEJIb & AM admincmd_rbs.am running
[ 23] Hud_info 2.1 h1k3 hud_info.amxx running
[ 24] Telegram Reports Sende 3.0.0 @pywave & Albert telegram_report running
[ 25] [190] MOTD RBS 21.03.23 SKAJIbnEJIb motd_rbs.amxx running
[ 26] trigger_camera fix 1.0.0 Nordic Warrior fix_cam.amxx running
[ 27] Auto Logs Cleaner 0.0.1 b0t. AutoLogsCleaner running
[ 28] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 29] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 30] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 31] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 32] ACS injection med-kit 1.0.6.2 DEV-CS.RU acs_injection.a debug
[ 33] [ReAPI] Healthnade 0.0.15f DEV-CS.RU Commun reapi_healthnad running
[ 34] Molotov Cocktail API 2.31 CHEL74 + mx?! molotov_cocktai running
[ 35] Molotov Cocktail Spawn 1.8 mx?! molotov_cocktai running
[ 36] Blinding Time 0.0.1 Albertio blinding_time.a running
[ 37] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 38] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 39] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 40] [190] Ultimate Models 21.03.23 SKAJIbnEJIb ultimate_models running
[ 41] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 42] Menus Front-End 1.9.0.5294 AMXX Dev Team menufront.amxx running
[ 43] Commands Menu 20.06.06 SKAJIbnEJIb & AM cmdmenu_rbs.amx running
[ 44] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 45] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 46] Reklama 20.05.2020 mx?! reklama.amxx running
[ 47] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 48] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 49] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 50] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
[ 51] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 52] FocusOnVotemap 1.2.1 Boec[SpecOPs] focus_on_votema running
[ 53] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 54] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 55] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 56] StatsX 1.9.0.5294 AMXX Dev Team statsx.amxx running
[ 57] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 58] [190] Ultimate Weapons 22.11.15 SKAJIbnEJIb ultimate_weapon running
[ 59] [190] VIP RBS 20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 60] [190] Ultimate Flags 22.11.15 SKAJIbnEJIb ultimate_flags. running
[ 61] RoundStart Speed 0.1 Vaqtincha set_speed_round running
[ 62] [ReAPI] Silly C4 2.0 F@ntoM & Cheap_S reapi_sillyc4.a running
[ 63] ADV. QUAKE SOUNDS (ENA 8.0 HATTRICK (HTTRCK AQS.amxx running
[ 64] New Dance Menu 2.4 b0t. NewDanceMenu.am running
[ 65] Bomb Taker 0.3 Vaqtincha bomb_taker.amxx running
[ 66] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 67] Reset Score 1.0 Silenttt resetscore.amxx running
[ 68] [190] Piss RBS 20.06.06 SKAJIbnEJIb & KR piss_rbs.amxx running
[ 69] [190] C4 Destroyer 21.03.23 SKAJIbnEJIb c4_destroyer.am running
[ 70] c4 Timer 0.2 Vaqtincha c4timer.amxx running
[ 71] WeaponBox Pack 0.2 Vaqtincha WeaponBoxPack.a running
[ 72] Knife Duel with Telepo 1.5 neygomon knife_duel_with running
[ 73] [ReAPI] Ghost after de 0.0.2 steelzzz ghost.amxx running
[ 74] unknown unknown unknown Server-Side_Smo running
[ 75] Explode Effects Remove 0.3 Vaqtincha granede_explode running
[ 76] Switch To Knife On Spa 0.2 Vaqtincha SwitchToKnifeOn running
[ 77] Grenade Info Sounds 0.1 Vaqtincha grenade_info_so running
[ 78] Grenade Animation 3rd 1.0 Prefers to be An grenade_animati running
[ 79] Advanced Kill Assists 1.5 Xelson next21_kill_ass running
[ 80] [ReAPI] Grenade Trile 1.2 Base Code: Fatih reapi_grenade_t running
[ 81] C4 GIBS 1.0 Garey c4_gibs.amxx running
[ 82] SPLESHING ON THE WATER 1.5 MayroN | KRoTaL splashing_on_th running
[ 83] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 84] [190] Damager RBS 20.06.06 SKAJIbnEJIb damager_rbs.amx running
[ 85] [ReAPI] Advanced Team 0.1.0 Vaqtincha AdvancedTeamCho running
[ 86] AWPL: Disabled maps 1.0.0 Nordic Warrior awp_limiter_dis running
[ 87] AWP Limiter 1.3.0 Beta Nordic Warrior awp_limiter.amx running
[ 88] unknown unknown unknown block_msg_win.a running
[ 89] WinTeam Sprite 0.0.8 Some Scripter WinTeam_Sprite. running
[ 90] [ZP] Multi Jump 1.0 Reflectif multijump_optio running
[ 91] HS_Blood 1.1 tuty hs_blood.amxx running
[ 92] Revive Teammates: Core 2.2.8 DEV-CS.RU Commun rt_core.amxx running
[ 93] Revive Teammates: Plan 2.2.8 DEV-CS.RU Commun rt_planting.amx running
[ 94] Revive Teammates: Rest 2.2.8 DEV-CS.RU Commun rt_restrictions running
[ 95] Revive Teammates: Time 2.2.8 DEV-CS.RU Commun rt_timer.amxx running
[ 96] Revive Teammates: Effe 2.2.8 DEV-CS.RU Commun rt_effects.amxx running
[ 97] Revive Teammates: Soun 2.2.8 DEV-CS.RU Commun rt_sounds.amxx running
[ 98] Revive Teammates: Bonu 2.2.8 DEV-CS.RU Commun rt_bonus.amxx running
[ 99] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[100] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[101] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[102] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[103] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[104] AMXBans: Screens Gm 1.6 Larte Team amxbans_ssban.a running
[105] Map Manager: Core 3.2.1 Mistrick map_manager_cor running
[106] Map Manager: Scheduler 0.2.1 Mistrick map_manager_sch running
[107] Map Manager: Rtv 0.1.5 Mistrick map_manager_rtv running
[108] Map Manager: Nominatio 0.3.5 Mistrick map_manager_nom running
[109] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[110] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[111] Map Manager: Effects 0.1.3 Mistrick map_manager_eff running
[112] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[113] Map Manager: Sounds 0.0.3 Mistrick map_manager_sou running
[114] Map Manager: Online ch 1.0.3 Sergey Shorokhov map_manager_onl running
[115] Map Manager: GUI 0.0.7 Mistrick map_manager_gui running
[116] [RE] Talisman 1.4.2 BiZaJe talisman.amxx running
[117] [RE] Talisman Health 1.4.2 BiZaJe talisman_health running
[118] [RE] Talisman HUD 1.4.2 BiZaJe talisman_hud.am running
[119] [RE] Talisman Sound 1.4.2 BiZaJe talisman_sound. running
( 12) Load fails: Module/Library "authemu" required for plugin. Check modules.ini.
119 plugins, 118 running
- Автор плагина
- Refresh, Emma Jule
- Версия плагина
- 1.0.6.2
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>
#include <reapi>
#define ACS_INJ_SOUND_NOTIFY "buttons/bell1.wav"
#define ACS_INJ_SOUND_REJECT "buttons/button2.wav"
#define is_valid_player(%0) bool:is_user_connected(%0)
#define FFADE_IN 0x0000 // Just here so we don't pass 0 into the function
#define FFADE_OUT 0x0001 // Fade out (not in)
#define FFADE_MODULATE 0x0002 // Modulate (don't blend)
#define FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received
static Float:gf_cure_time[MAX_PLAYERS + 1];
static gi_cure_speed[MAX_PLAYERS + 1];
enum _:ACS_STOP_THROTTLING {
bool:FLAG,
Float:LAST_USAGE
}; new ACS_PRINT_THR[MAX_PLAYERS + 1][ACS_STOP_THROTTLING];
enum _:CVARS {
PREFIX[64], ACCESS[32], COMMANDS[512], SPAWN_BONUS_COUNT, SPAWN_BONUS_STEAM_COUNT, USE_METHOD, SPEED, SPEED_DYNAMIC, BLOCK, Float:NEXT_ATTACK,
HEALTH, MAX_TIMES, MAX_COUNT, SEQUENCE, COST, BAR, VIP, DIFF, DIFF_MODE, KILL, V_MODEL[MAX_RESOURCE_PATH_LENGTH], P_MODEL[MAX_RESOURCE_PATH_LENGTH],
PRE_SAMPLE[MAX_RESOURCE_PATH_LENGTH], SAMPLE[MAX_RESOURCE_PATH_LENGTH], CHEAT, ENABLE, SPAWN, AES_BUY_COUNT, CMD_COUNT, NOTIFY_MODE, NOTIFY_SOUND_MODE
}; new CVAR[CVARS];
enum _:INJECT_DATA {
USED, COUNT, bool:IS_STEAM, Float:REMAINS_INJECT, bool:IS_INJECT, WEAPON
}; new acs_injections[MAX_PLAYERS + 1][INJECT_DATA];
#define ACS_INJ_SOUND_MASK (~30) // Какие сообщения выводить без звукового сопровождения и контроля троттлинга
enum _:NOTIFY_MODE {
INJ_SHOW_GET = 1, // Сопровождается звуком NOTIFY (сообщение с уведомлением о способе использования шприца)
INJ_SHOW_TOTAL = 2, // Без звука
INJ_SHOW_LEFT = 4, // Без звука
INJ_SHOW_PARTIAL = 8, // Без звука
INJ_SHOW_FULL = 16, // Без звука
INJ_SHOW_FADE = 32, // Сопровождается звуком исцеления
INJ_SHOW_BLINK = 64, // Сопровождается звуком REJECT
INJ_SHOW_ERROR = 128 // Сопровождается звуком REJECT
}
public plugin_precache() {
register_plugin("ACS injection med-kit", "1.0.6.2", "DEV-CS.RU");
acs_create_cvars();
}
public plugin_natives() {
register_native("acs_inj_get_user_injections", "native_acs_inj_get_injections");
register_native("acs_inj_add_user_injections", "native_acs_inj_add_injections");
register_native("acs_inj_reset_user_injections", "native_acs_inj_reset_injections");
register_native("acs_inj_get_user_injects", "native_acs_inj_get_injects");
register_native("acs_inj_is_user_injected", "native_acs_inj_is_injected");
register_native("acs_inj_is_user_injection", "native_acs_inj_is_injection");
}
public plugin_init() {
if (register_dictionary("acs_injection.txt") == 0)
server_print("[ACS_INJECT] Error: not fount dictionary <acs_injection.txt>");
RegisterHamPlayer(Ham_Spawn, "CBasePlayer_Spawn", .Post = true);
RegisterHamPlayer(Ham_Killed, "CBasePlayer_Killed", .Post = true);
register_event("CurWeapon", "check_weapon", "be", "1=1");
RegisterHam(Ham_Item_Deploy, "weapon_knife", "CBasePlayerWeapon_Deploy", .Post = true);
RegisterHam(Ham_Item_CanHolster, "weapon_knife", "CBasePlayerWeapon_CanHolster");
}
public client_putinserver(id) {
// Используем STEAM только если игрок не соответствует флагам доступа (чтобы различить количество выдаваемых в начале раунда шприцов по кварам)
acs_injections[id][IS_STEAM] = (CVAR[SPAWN_BONUS_STEAM_COUNT] && (!((get_user_flags(id) & read_flags(CVAR[ACCESS])) || (!read_flags(CVAR[ACCESS])))) && is_user_steam(id));
acs_injections[id][COUNT]
= acs_injections[id][USED]
= 0;
acs_injections[id][REMAINS_INJECT] = 0.0;
acs_injections[id][IS_INJECT] = false;
}
public client_disconnected(id) {
// Ждем вас снова!
}
public CBasePlayer_OnSpawnEquip(id) {
if (CVAR[SPAWN])
acs_injections[id][COUNT] = 0;
if (acs_inj_check_access(id))
acs_inj_add_injection_count(id, (acs_injections[id][IS_STEAM] ? CVAR[SPAWN_BONUS_STEAM_COUNT] : CVAR[SPAWN_BONUS_COUNT]));
}
public CBasePlayer_Spawn(id) {
acs_injections[id][IS_INJECT] = false;
acs_injections[id][REMAINS_INJECT] = 0.0;
acs_injections[id][USED] = 0;
}
public CBasePlayer_Killed(id) {
acs_injections[id][IS_INJECT] = false;
acs_injections[id][REMAINS_INJECT] = 0.0;
acs_injections[id][USED] = 0;
if (CVAR[KILL])
acs_injections[id][COUNT] = 0;
}
public check_weapon(id) {
// Если во время анимации переключили оружие, останавливаем лечение
if ((!CVAR[BLOCK]) && acs_injections[id][IS_INJECT] && get_member(id, m_pActiveItem) != get_member(id, m_rgpPlayerItems, KNIFE_SLOT))
acs_injections[id][IS_INJECT] = false;
return;
}
public bool:Command_BuyMedkit(id) {
return acs_inj_add_injection_count(id, CVAR[AES_BUY_COUNT]);
}
public bool:acs_inj_check_access(id) {
return is_valid_player(id) ? ((get_user_flags(id) & read_flags(CVAR[ACCESS])) || (!read_flags(CVAR[ACCESS])) || acs_injections[id][IS_STEAM]) : false;
}
public bool:acs_inj_add_injection_count(id, count) {
static bool:b_result, i_count;
if ((b_result = (count > 0))) {
if ((b_result = (acs_injections[id][USED] < CVAR[MAX_TIMES]))) {
if ((b_result = (acs_injections[id][COUNT] < CVAR[MAX_COUNT]))) {
// Если выдаем (покупаем) больше лимита - обрезаем под лимит, чтобы получить хоть сколько-нибудь шприцов, а не ошибку
i_count = ((acs_injections[id][COUNT] + count) <= CVAR[MAX_COUNT]) ? count : (CVAR[MAX_COUNT] - acs_injections[id][COUNT]);
acs_injections[id][COUNT] += i_count;
if (i_count == 1)
acs_client_print(id, INJ_SHOW_GET, "%L", id, "INJ_GET_INJECT");
else
acs_client_print(id, INJ_SHOW_GET, "%L", id, "INJ_GET_INJECT_COUNT", i_count, fmt("%L", id, fmt("INJ_COUNT_%d_SUFFIX", (i_count % 10))));
if (acs_injections[id][COUNT] > 1)
acs_client_print(id, INJ_SHOW_TOTAL, "%L", id, "INJ_TOTAL_COUNT", acs_injections[id][COUNT], fmt("%L", id, fmt("INJ_COUNT_%d_SUFFIX", acs_injections[id][COUNT] % 10)));
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_MAX_COUNT");
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_LIMIT");
}
return b_result;
}
public cmd_injection(id) {
if (acs_inj_check_access(id)) {
if (acs_inj_can_get_inject(id))
acs_inj_add_injection_count(id, CVAR[CMD_COUNT]);
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_ACCESS");
return PLUGIN_HANDLED;
}
public @use_injection(id)
{
static p_result, Float:f_inj_time, Float:CUR_HEALTH, Float:MAX_HEALTH, Float:HEALTH_UP;
p_result = PLUGIN_CONTINUE;
if (acs_inj_can_use_inject(id)) {
acs_injections[id][WEAPON] = get_member(id, m_pActiveItem);
CUR_HEALTH = Float:get_entvar(id, var_health);
MAX_HEALTH = Float:get_entvar(id, var_max_health);
// Если лечим не до максимального уровня, проверяем остаток
if (CVAR[HEALTH] > 0)
// Если Не закончили лечение, продолжаем
if (acs_injections[id][REMAINS_INJECT] > 0)
HEALTH_UP = acs_injections[id][REMAINS_INJECT];
// Иначе начинаем новое
else
HEALTH_UP = float(CVAR[HEALTH]);
else
HEALTH_UP = MAX_HEALTH - CUR_HEALTH;
acs_injections[id][REMAINS_INJECT] = HEALTH_UP;
switch (CVAR[SPEED_DYNAMIC]) {
case 1: gi_cure_speed[id] = floatround(CVAR[SPEED] * (CUR_HEALTH / (MAX_HEALTH - CVAR[HEALTH]))) + 2;
case 2: gi_cure_speed[id] = floatround(CVAR[SPEED] * (HEALTH_UP / CVAR[HEALTH])) + 2;
case 3: gi_cure_speed[id] = floatround(CVAR[SPEED] * (CUR_HEALTH / (MAX_HEALTH - CVAR[HEALTH])) * (HEALTH_UP / CVAR[HEALTH])) + 2;
default: gi_cure_speed[id] = CVAR[SPEED];
}
f_inj_time = acs_injections[id][REMAINS_INJECT] / gi_cure_speed[id];
//console_print(id, "[DEBUG] CURR = %f, MAX = %f, SPEED = %d, TIME = %f", CUR_HEALTH, MAX_HEALTH, gi_cure_speed[id], f_inj_time);
rg_switch_weapon(id, get_member(id, m_rgpPlayerItems, KNIFE_SLOT));
if (CVAR[V_MODEL][0] && CVAR[P_MODEL][0]) {
set_entvar(id, var_viewmodel, CVAR[V_MODEL]);
set_entvar(id, var_weaponmodel, CVAR[P_MODEL]);
acs_send_weapon_anim(id, CVAR[SEQUENCE]);
}
set_member(id, m_flNextAttack, f_inj_time);
if (CVAR[BAR] && f_inj_time > 1.0)
rg_send_bartime(id, floatround(f_inj_time));
if (CVAR[PRE_SAMPLE][0])
rh_emit_sound2(id, 0, CHAN_ITEM, CVAR[PRE_SAMPLE]);
gf_cure_time[id] = 0.0;
acs_injections[id][IS_INJECT] = true;
//console_print(id, "[DEBUG] is_inject = %d", acs_injections[id][IS_INJECT]);
RequestFrame("@inject_engine", id)
p_result = PLUGIN_HANDLED;
}
return p_result;
}
@inject_engine(id) {
static Float:f_time, s_classname[8];
if ((!acs_injections[id][IS_INJECT]) || get_member_game(m_bRoundTerminating)) {
if (is_valid_player(id)) {
if (CVAR[BAR])
rg_send_bartime(id, 0);
if (is_user_alive(id)) {
if ((get_member(id, m_pActiveItem) == get_member(id, m_rgpPlayerItems, KNIFE_SLOT)))
if ((!is_nullent(acs_injections[id][WEAPON])) && is_entity(acs_injections[id][WEAPON])) {
get_entvar(acs_injections[id][WEAPON], var_classname, s_classname, charsmax(s_classname))
if ((contain(s_classname, "weapon_") == 0) && (get_member(acs_injections[id][WEAPON], m_pPlayer) == id))
rg_switch_weapon(id, acs_injections[id][WEAPON]);
else
rg_switch_weapon(id, get_member(id, m_rgpPlayerItems, KNIFE_SLOT));
} else
rg_switch_weapon(id, get_member(id, m_rgpPlayerItems, KNIFE_SLOT));
set_member(id, m_flNextAttack, CVAR[NEXT_ATTACK]);
if (acs_injections[id][REMAINS_INJECT] == 0.0) {
if (CVAR[NOTIFY_MODE] & INJ_SHOW_FADE)
acs_screen_fade(id, { 0, 200, 0 }, 1.5, 0.6, 200);
if (CVAR[NOTIFY_SOUND_MODE] & INJ_SHOW_FADE)
rh_emit_sound2(id, 0, CHAN_ITEM, CVAR[SAMPLE]);
// Проверяем, чтобы не уйти в минус (сторонние плагины могут забрать шприцы в процессе лечения)
if (acs_injections[id][COUNT] > 0)
acs_injections[id][COUNT]--;
else
acs_injections[id][COUNT] = 0;
acs_injections[id][USED]++;
if (acs_injections[id][COUNT])
acs_client_print(id, INJ_SHOW_LEFT, "%L", id, "INJ_LEFT_COUNT", fmt("%L", id, fmt("INJ_COUNT_%d_PREFIX", (acs_injections[id][COUNT] % 10))), acs_injections[id][COUNT], fmt("%L", id, fmt("INJ_COUNT_%d_SUFFIX", (acs_injections[id][COUNT] % 10))));
}
if (Float:get_entvar(id, var_health) == Float:get_entvar(id, var_max_health))
acs_client_print(id, INJ_SHOW_FULL, "%L", id, "INJ_SUCCESFULLY_INJECTED_FULL");
else
acs_client_print(id, INJ_SHOW_PARTIAL, "%L", id, "INJ_SUCCESFULLY_INJECTED");
}
rg_add_account(id, -CVAR[COST]); // Никаких кредитов, списываем деньги сразу по окончании лечения, чтобы пациент не сдох раньше оплаты
}
} else {
f_time = get_gametime();
if (gf_cure_time[id] < f_time) {
//console_print(id, "[DEBUG] f_time = %f, cure_time = %f, cure_speed = %d", f_time, gf_cure_time[id], gi_cure_speed[id]);
acs_injections[id][REMAINS_INJECT] = acs_injections[id][REMAINS_INJECT] - 1.0;
if (!(ExecuteHamB(Ham_TakeHealth, id, 1.0, DMG_GENERIC) && acs_injections[id][REMAINS_INJECT] > 0.0)) {
acs_injections[id][REMAINS_INJECT] = 0.0;
acs_injections[id][IS_INJECT] = false;
}
gf_cure_time[id] = f_time + 1.0 / gi_cure_speed[id];
}
RequestFrame("@inject_engine", id);
}
}
public CBasePlayerWeapon_CanHolster(p_weapon) {
static bool:b_result, i_player;
i_player = get_member(p_weapon, m_pPlayer);
//console_print(i_player, "[DEBUG] player = %d, block = %d, is_inj = %d", i_player, CVAR[BLOCK], acs_injections[i_player][IS_INJECT]);
SetHamReturnInteger(!(b_result = CVAR[BLOCK] && acs_injections[i_player][IS_INJECT]));
return (b_result) ? HAM_SUPERCEDE: HAM_IGNORED;
}
public CBasePlayerWeapon_Deploy(p_weapon) {
static i_player;
i_player = get_member(p_weapon, m_pPlayer);
if (CVAR[CHEAT]
&& (!acs_injections[i_player][COUNT])
&& (Float:get_entvar(i_player, var_health) < Float:get_entvar(i_player, var_max_health) / 2.0)
&& (!random(5)))
acs_inj_add_injection_count(i_player, 1);
}
acs_create_cvars() {
static s_cmd_name[32];
bind_pcvar_string(create_cvar("acs_inj_prefix", "^4[Injection]", .description = "Префикс в чате"), CVAR[PREFIX], charsmax(CVAR[PREFIX]));
bind_pcvar_num(create_cvar("acs_inj_enable", "1", .description = "0 - Выкл. 1 - Вкл.", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[ENABLE]);
bind_pcvar_string(create_cvar("acs_inj_access", "s", .description = "Флаги доступа (оставьте пустым для выдачи всем игрокам)"), CVAR[ACCESS], charsmax(CVAR[ACCESS]));
bind_pcvar_string(create_cvar("acs_inj_commands", "/acs_injection /acs_inject", .description = "Команды для получения шприца (оставьте пустым чтобы отключить)"), CVAR[COMMANDS], charsmax(CVAR[COMMANDS]));
bind_pcvar_num(create_cvar("acs_inj_spawn_bonus_count", "1", .description = "Сколько шприцов выдавать бесплатно в начале раунда игрокам с флагами доступа", .has_min=true, .min_val=0.0, .has_max=true, .max_val=10.0), CVAR[SPAWN_BONUS_COUNT]);
bind_pcvar_num(create_cvar("acs_inj_spawn_bonus_steam_count", "1", .description = "Сколько шприцов выдавать бесплатно в начале раунда игрокам STEAM (не используется, если флаги доступа не заданы)", .has_min=true, .min_val=0.0, .has_max=true, .max_val=10.0), CVAR[SPAWN_BONUS_STEAM_COUNT]);
bind_pcvar_num(create_cvar("acs_inj_aes_buy_count", "1", .description = "Сколько шприцов выдавать при покупке через AES-Bonus", .has_min=true, .min_val=1.0, .has_max=true, .max_val=10.0), CVAR[AES_BUY_COUNT]);
bind_pcvar_num(create_cvar("acs_inj_cmd_count", "1", .description = "Сколько шприцов выдавать по команде acs_inj_commands", .has_min=true, .min_val=1.0, .has_max=true, .max_val=10.0), CVAR[CMD_COUNT]);
bind_pcvar_num(create_cvar("acs_inj_use_method", "4", .description = "Метод использования:^n0 - через Z (radio1)^n1 - через X (radio2)^n2 - через C (radio3)^n3 - через Q (drop)^n4 - через F (<фонарь> - impulse 100)", .has_max = true, .max_val = 4.0), CVAR[USE_METHOD]);
bind_pcvar_num(create_cvar("acs_inj_speed", "10", .description = "Скорость лечения (HP в секунду)", .has_min=true, .min_val=1.0, .has_max=true, .max_val=100.0), CVAR[SPEED]);
bind_pcvar_num(create_cvar("acs_inj_speed_dynamic", "3", .description = "Изменять время лечения в зависимости от:^n 0 - Выкл.^n1 - текущей величины здоровья^2 - неиспользованного остатка шприца^n3 - оба варианта", .has_min=true, .min_val=0.0, .has_max=true, .max_val=3.0), CVAR[SPEED_DYNAMIC]);
bind_pcvar_num(create_cvar("acs_inj_block", "0", .description = "Блокировать смену оружия в процессе лечения", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[BLOCK]);
bind_pcvar_float(create_cvar("acs_inj_next_attack", "0.0", .description = "Через сколько секунд после лечения можно стрелять", .has_min=true, .min_val=0.0, .has_max=true, .max_val=10.0), CVAR[NEXT_ATTACK]);
bind_pcvar_num(create_cvar("acs_inj_health", "30", .description = "Величина пополняемого здоровья, 0 - MAX ", .has_min = true, .has_max = true, .min_val = 0.0, .max_val = 100.0), CVAR[HEALTH]);
bind_pcvar_num(create_cvar("acs_inj_max_use", "3", .description = "Максимальное кол-во использований за раунд", .has_min = true, .min_val = 1.0, .has_max=true, .max_val=10.0), CVAR[MAX_TIMES]);
bind_pcvar_num(create_cvar("acs_inj_max_count", "3", .description = "Сколько максимально игрок может иметь с собой шприцов", .has_min=true, .min_val=0.0, .has_max=true, .max_val=10.0), CVAR[MAX_COUNT]);
bind_pcvar_num(create_cvar("acs_inj_sequence", "0", .description = "Индекс анимации модели шприца", .has_min=true, .min_val=0.0, .has_max=true, .max_val=100.0), CVAR[SEQUENCE]);
bind_pcvar_num(create_cvar("acs_inj_cost", "0", .description = "Стоимость услуги", .has_min=true, .min_val=0.0, .has_max=true, .max_val=16000.0), CVAR[COST]);
bind_pcvar_num(create_cvar("acs_inj_bar", "1", .description = "Включить линию прогресса", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[BAR]);
bind_pcvar_num(create_cvar("acs_inj_vip", "0", .description = "Запретить VIP игроку использовать шприц на as_* картах", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[VIP]);
bind_pcvar_num(create_cvar("acs_inj_win_diff", "5", .description = "Если разница между победами команд превышает это значение, блокировать шприц для доминантной команды (0 - Выкл.)", .has_min=true, .min_val=0.0, .has_max=true, .max_val=10.0), CVAR[DIFF]);
bind_pcvar_num(create_cvar("acs_inj_win_diff_mode", "0", .description = "Режим определения доминантной команды:^n0 - доминирование на N очков^n1 - имеет подряд N побед", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[DIFF_MODE]);
bind_pcvar_num(create_cvar("acs_inj_notify_mode", "255", .description = "Режим вывода уведомлений по действиям шприца:^n0 - Выкл.^n1 - получение шприца^n2 - количествово шприцов с собой^n4 - остаток шприцов^n8 - частичное излечение^n16 - полное излечение^n32 - затемнение экрана^n64 - мигание строки баланса^n128 - ошибки по действиям шприца^n(для произвольной комбинации необходимо сложить значения нужных пунктов)", .has_min=true, .min_val=0.0, .has_max=true, .max_val=255.0), CVAR[NOTIFY_MODE]);
bind_pcvar_num(create_cvar("acs_inj_notify_sound_mode", "160", .description = "Режим сопровождения звуком уведомлений по действиям шприца:^n0 - Выкл.^n1 - получение шприца^n32 - звук излечения^n128 - ошибки по действиям шприца^n(для произвольной комбинации необходимо сложить значения нужных пунктов)", .has_min=true, .min_val=0.0, .has_max=true, .max_val=255.0), CVAR[NOTIFY_SOUND_MODE]);
bind_pcvar_num(create_cvar("acs_inj_spawn_reset", "1", .description = "Обнулять кол-во шприцов в начале раунда", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[SPAWN]);
bind_pcvar_num(create_cvar("acs_inj_kill_reset", "1", .description = "Обнулять кол-во шприцов после смерти", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[KILL]);
bind_pcvar_num(create_cvar("acs_inj_cheat", "1", .description = "Выдать шприц с 20% вероятностью игроку со здоровьем <50 при переключении оружия", .has_min=true, .min_val=0.0, .has_max=true, .max_val=1.0), CVAR[CHEAT]);
bind_pcvar_string(create_cvar("acs_inj_v_model", "models/v_healshot.mdl", .description = "V модель шприца (опционально)"), CVAR[V_MODEL], charsmax(CVAR[V_MODEL]));
bind_pcvar_string(create_cvar("acs_inj_p_model", "models/p_healshot.mdl", .description = "P модель шприца (опционально)"), CVAR[P_MODEL], charsmax(CVAR[P_MODEL]));
bind_pcvar_string(create_cvar("acs_inj_pre_sample", "injection/pre_medshot.wav", .description = "Звук до иньекции (опционально)"), CVAR[PRE_SAMPLE], charsmax(CVAR[PRE_SAMPLE]));
bind_pcvar_string(create_cvar("acs_inj_sample", "injection/medshot.wav", .description = "Звук после иньекции (опционально)"), CVAR[SAMPLE], charsmax(CVAR[SAMPLE]));
if (file_exists(fmt("sound/%s", ACS_INJ_SOUND_NOTIFY)))
precache_sound(ACS_INJ_SOUND_NOTIFY);
if (file_exists(fmt("sound/%s", ACS_INJ_SOUND_REJECT)))
precache_sound(ACS_INJ_SOUND_REJECT);
if (CVAR[V_MODEL][0])
precache_model(CVAR[V_MODEL]);
if (CVAR[P_MODEL][0])
precache_model(CVAR[P_MODEL]);
if (CVAR[PRE_SAMPLE][0])
precache_sound(CVAR[PRE_SAMPLE]);
if (CVAR[SAMPLE][0])
precache_sound(CVAR[SAMPLE]);
while (argbreak(CVAR[COMMANDS], s_cmd_name, charsmax(s_cmd_name), CVAR[COMMANDS], charsmax(CVAR[COMMANDS])) != INVALID_HANDLE) {
if (s_cmd_name[0] == '/' || s_cmd_name[0] == '!' || s_cmd_name[0] == '.') {
register_clcmd(fmt("say %s", s_cmd_name), "cmd_injection");
register_clcmd(fmt("say_team %s", s_cmd_name), "cmd_injection");
} else
register_clcmd(s_cmd_name, "cmd_injection", CVAR[ACCESS]);
}
switch (CVAR[USE_METHOD]) {
case 0: register_clcmd("radio1", "@use_injection");
case 1: register_clcmd("radio2", "@use_injection");
case 2: register_clcmd("radio3", "@use_injection");
case 3: register_clcmd("drop", "@use_injection");
case 4: register_impulse(100, "@use_injection");
}
if (CVAR[SPAWN_BONUS_COUNT] || CVAR[SPAWN_BONUS_STEAM_COUNT])
RegisterHookChain(RG_CBasePlayer_OnSpawnEquip, "CBasePlayer_OnSpawnEquip", true);
AutoExecConfig(.name = "acs_injection");
}
public native_acs_inj_get_injections(const plugin_id, const argc) {
enum { arg_id = 1 }
static id;
id = get_param(arg_id);
return is_valid_player(id) ? acs_injections[id][COUNT] : 0;
}
public native_acs_inj_add_injections(const plugin_id, const argc) {
enum { arg_id = 1, arg_add_value }
static id, add_value, bool:b_result;
id = get_param(arg_id);
add_value = get_param(arg_add_value);
if ((b_result = bool:is_user_alive(id)))
//Проверяем чтобы не уйти в минус
if (acs_injections[id][COUNT] + add_value >= 0)
acs_injections[id][COUNT] += add_value;
return b_result;
}
public native_acs_inj_reset_injections(plugin_id, num_params) {
enum { arg_id = 1 }
static id, bool:b_result;
id = get_param(arg_id);
if ((b_result = is_valid_player(id)))
acs_injections[id][COUNT] = 0;
return b_result;
}
public native_acs_inj_get_injects(plugin_id, num_params) {
enum { arg_id = 1 }
static id;
id = get_param(arg_id);
return is_valid_player(id) ? acs_injections[id][USED] : 0;
}
public native_acs_inj_is_injected(plugin_id, num_params) {
enum { arg_id = 1 }
static id;
id = get_param(arg_id);
return is_valid_player(id) ? (acs_injections[id][USED] > 0) : false;
}
public native_acs_inj_is_injection(plugin_id, num_params) {
enum { arg_id = 1 }
static id;
id = get_param(arg_id);
return is_user_alive(id) ? acs_injections[id][IS_INJECT] : false;
}
stock acs_check_throttling(id) {
static Float:f_time, Float:f_delta;
f_time = get_gametime();
f_delta = f_time - ACS_PRINT_THR[id][LAST_USAGE];
if (ACS_PRINT_THR[id][FLAG]) {
if (f_delta > 4 * 0.75)
ACS_PRINT_THR[id][FLAG] = false;
} else if (f_delta < 0.75)
ACS_PRINT_THR[id][FLAG] = true;
ACS_PRINT_THR[id][LAST_USAGE] = f_time;
return !ACS_PRINT_THR[id][FLAG];
}
stock acs_client_print(const id, const notify_mode, const message[], any:...) {
static s_tmp[190];
// Отключаем проверку троттлинга, если сообщение без звуковых уведомлений (если сообщения показываются подряд - второе и последующие должны быть без звука)
if ((CVAR[NOTIFY_MODE] & notify_mode) && ((id == 0) || is_valid_player(id)) && (acs_check_throttling(id) || (!((CVAR[NOTIFY_SOUND_MODE] & ACS_INJ_SOUND_MASK) & notify_mode)))) {
vformat(s_tmp, charsmax(s_tmp), message, 4);
if (CVAR[PREFIX])
format(s_tmp, charsmax(s_tmp), "%s %s", CVAR[PREFIX], s_tmp);
client_print_color(id, ((notify_mode & INJ_SHOW_ERROR) ? print_team_red : print_team_blue), s_tmp);
if ((CVAR[NOTIFY_SOUND_MODE] & ACS_INJ_SOUND_MASK) & notify_mode)
acs_send_audio(id, ((notify_mode & INJ_SHOW_ERROR) ? ACS_INJ_SOUND_REJECT : ACS_INJ_SOUND_NOTIFY));
}
}
stock bool:acs_inj_can_get_inject(id) {
new bool:b_result = false;
if (CVAR[ENABLE]) {
if ((!(CVAR[VIP] && get_member(id, m_bIsVIP)))) {
if (is_user_alive(id)) {
if (!is_team_dominate(id)) {
if (!(b_result = (get_member(id, m_iAccount) >= CVAR[COST])))
acs_blink_account(id);
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_DOMINA");
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_ALIVE");
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_VIP");
}
//console_print(id, "[DEBUG] can_get_inject = %d", b_result);
return b_result;
}
stock bool:acs_inj_can_use_inject(id) {
static p_weapon;
new bool:b_result = false;
//console_print(id, "[DEBUG] used = %d, count = %d", acs_injections[id][USED], acs_injections[id][COUNT]);
if ((!acs_injections[id][IS_INJECT])
&& (!get_member_game(m_bRoundTerminating))
&& acs_inj_can_get_inject(id)
&& (Float:get_entvar(id, var_health) < Float:get_entvar(id, var_max_health))) {
if (acs_injections[id][COUNT]) {
if ((b_result = acs_injections[id][USED] < CVAR[MAX_TIMES])) {
if (b_result && (CVAR[USE_METHOD] < 4)) {
p_weapon = get_member(id, m_pActiveItem);
b_result = ((!is_nullent(p_weapon)) && is_entity(p_weapon) && (get_member(p_weapon, m_iId) == CSW_KNIFE))
}
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_LIMIT");
} else
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_DONT_HAVE");
}
return b_result;
}
stock acs_send_audio(const id, const sample[]) {
static i_msg;
if(sample[0]) {
if ((id == 0) || is_valid_player(id)) {
if(!i_msg) {
i_msg = get_user_msgid("SendAudio");
}
message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, i_msg, .player = id);
{
write_byte(id);
write_string(sample);
write_short(PITCH_NORM);
}
message_end();
}
}
}
stock bool:is_team_dominate(id) {
static i_diff;
return (CVAR[DIFF] && (get_member(id, m_iTeam) == acs_get_team_dominate(i_diff))) ? (i_diff > CVAR[DIFF]) : false;
}
stock TeamName:acs_get_team_dominate(&diff = 0) {
static TeamName:t_team;
t_team = TEAM_UNASSIGNED;
if ((diff = (CVAR[DIFF_MODE] ? (get_member_game(m_iNumConsecutiveCTLoses) - get_member_game(m_iNumConsecutiveTerroristLoses)) : (get_member_game(m_iNumTerroristWins) - get_member_game(m_iNumCTWins))) > 0))
t_team = TEAM_TERRORIST;
else if (diff < 0)
t_team = TEAM_CT;
abs(diff);
return t_team;
}
stock acs_send_weapon_anim(const id, const sequence) {
if (is_valid_player(id) && is_user_alive(id)) {
set_entvar(id, var_weaponanim, sequence);
message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = id);
{
write_byte(sequence);
write_byte(0);
}
message_end();
}
}
stock acs_screen_fade(id = 0, v_color[3] = { 0, 0, 0 }, Float:f_time = -1.0, Float:hold_time = 0.0, alpha = 0, flags = FFADE_IN, bool:reliable = false) {
static i_fade_time, i_msg, i_msg_dest;
if (is_valid_player(id) && is_user_alive(id)) {
if (get_member(id, m_blindUntilTime) < get_gametime()) {
if (f_time == -1.0)
i_fade_time = 4;
else
i_fade_time = clamp(floatround(f_time * (1 << 12)), 0, 0xFFFF);
if (!i_msg)
i_msg = get_user_msgid("ScreenFade");
if (reliable)
i_msg_dest = id ? MSG_ONE : MSG_ALL;
else
i_msg_dest = id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST;
message_begin(i_msg_dest, i_msg, .player = id);
{
write_short(i_fade_time);
write_short(clamp(floatround(hold_time * (1 << 12)), 0, 0xFFFF));
write_short(flags);
write_byte(v_color[0]);
write_byte(v_color[1]);
write_byte(v_color[2]);
write_byte(alpha);
}
message_end();
}
}
}
stock acs_blink_account(id) {
static i_msg;
if (is_valid_player(id) && is_user_alive(id)) {
if ((CVAR[NOTIFY_MODE] & INJ_SHOW_ERROR))
acs_client_print(id, INJ_SHOW_ERROR, "%L", id, "INJ_NOT_ENOUGH");
if ((CVAR[NOTIFY_MODE] & INJ_SHOW_BLINK) && (i_msg || (i_msg = get_user_msgid("BlinkAcct")))) {
message_begin(MSG_ONE_UNRELIABLE, i_msg, .player = id);
{
write_byte(3);
}
message_end();
}
}
}
Всем привет! После обновления модуля https://dev-cs.ru/resources/68/ отлетел ACS injection и authemu.
В этой теме было размещено решение! Перейти к решению.