Пользователь
- Сообщения
- 162
- Реакции
- 4
- Помог
- 3 раз(а)
- Ошибка
-
Нет. В логах тоже пусто. Просто не открывается меню плагина.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5235 (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 18 2018 01:20:00
Built from: https://github.com/alliedmodders/amxmodx/commit/6c53524
Build ID: 5235:6c53524
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.692-dev
Build date: 18:58:01 Sep 21 2019 (1988)
Build from: https://github.com/dreamstalker/rehlds/commit/e7232be
- ReGamedll
-
ReGameDLL version: 5.12.0.425-dev
Build date: 08:48:23 Nov 2 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/fd06d65
- Версия 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
- Список метамодулей
-
[ 1] Reunion RUN - reunion.so v0.1.0.92c ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 4] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 5] WHBlocker RUN - whblocker.so v1.5.696 ini ANY
[ 6] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY
[ 7] VoiceTranscoder RUN - vtc.so v2017RC4 ini ANY
[ 8] AMX Mod X RUN - amxmodx.so v1.9.0.5235 ini Start ANY
[ 9] Ultimate Unprecacher RUN - ultimate_unprecacher.so vBeta 2.5.3 ini Chlvl Chlvl
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.9.0.171-dev pl8 ANY Never
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[18] AuthEmu RUN - authemu_amxx_i386.so v4.2.12.311-dev+m pl8 ANY Never
[19] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl8 ANY ANY
- Список плагинов
-
[ 1] Master Servers Check v4.8 Javekson ms_check.amxx running
[ 2] Change Game Name v1.2 ReHLDS Team change_game_nam running
[ 3] Admin Loader v3.5 neygomon admin_loader_3. running
[ 4] FreshBans v1.4.0b kanagava fresh_bans.amxx running
[ 5] DopBan v3.0.3b kanagava dop_ban.amxx running
[ 6] Aliases checker v1.0.3 kanagava alias_checker.a running
[ 7] Advanced Gag v1.9.0 neygomon amx_gag.amxx running
[ 8] ScreenMaker v1.1 neygomon screen_maker.am running
[ 9] 49 44 49 v20 4E 41 58 59 49 fix.amxx running
[ 10] Admin Chat v1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 11] Menus Front-End v1.5 neugomon menufront_end.a running
[ 12] Menus Front-End v1.5 neugomon supervip.amxx running
[ 13] Players Menu v1.7 neugomon players_menu.am running
[ 14] AuthEmu API v1.0 Dev-MS Team authemu.amxx running
[ 15] Maps Menu v1.4.1 neugomon mapsmenu.amxx running
[ 16] Admin Votes v1.9.0.5249 AMXX Dev Team adminvote.amxx running
[ 17] Restrict Weapons v1.9.0.5249 AMXX Dev Team restmenu.amxx running
[ 18] Killer ScreenFade v0.0.5 Vaqtincha reapi_killer_sc running
[ 19] [183] Ultimate Flags v19.10.30 SKAJIbnEJIb ultimate_flags. running
[ 20] Block Pickup Gold v0.1 Vaqtincha BlockPickupGold running
[ 21] [190] VIP RBS v19.12.09 SKAJIbnEJIb vip_rbs.amxx running
[ 22] [ReAPI] Round Balancer v1.1 neygomon round_balancer. running
[ 23] Adverts v3.3 panicaskill adverts.amxx running
[ 24] CSStatsX SQL v0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 25] Addon for Stats v0.1 mx?! addon_for_stats running
[ 26] Stats Configuration v1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 27] AES: StatsX v0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 28] Afk Control v0.5.1 neygomon afk_control.amx running
[ 29] Parachute v1.1 ReHLDS Team parachute.amxx running
[ 30] resetscore(ReAPI) v1.0 Phantom resetscore.amxx running
[ 31] Damager Advanced v1.1.2 Radius (based on damager_advance running
[ 32] [ReAPI] No Team Flash v0.0.2 Vaqtincha no_team_flash.a running
[ 33] DemoRecoder v1.1 neygomon amx_demorec.amx running
[ 34] Ping Control v1.31 neygomon Ping_Control.am running
[ 35] Kills Counter v1.1a Safety1st kills_counter_o running
[ 36] Server Menu v0.1 mx?! simple_menu.amx running
[ 37] [ReAPI] Kill Sounds v0.1 mx?! kill_sounds.amx running
[ 38] Say me and Say hp v1.4 neygomon sayme.amxx running
[ 39] Mode 2x2 v2.5re s1lent mode.amxx running
[ 40] [ReAPI] AWPoff v1.4.3 PAffAEJIkA :3 awp_off.amxx stopped
[ 41] RE C4 Timer [OFF] v1.0 AcE re_c4_timer.amx paused
[ 42] Lite Kill Assist v1.17 neygomon lite_kill_assis running
[ 43] Time for info v1.0 neugomon time_for_info.a running
[ 44] ReAimDetector API v0.2.2 ReHLDS Team reaimdetector.a running
[ 45] Lite Admin ESP v1.1 neygomon, AcE admin_esp.amxx running
[ 46] DevMsCore v1.0 gyxoBka DevMs_Core.amxx running
[ 47] DevMs Flag v1.1 gyxoBka DevMs_Flag.amxx running
[ 48] DevMs Flag v1.0 gyxoBka gsmodels.amxx running
[ 49] DevMs PlayerMenu v1.0 gyxoBka DevMs_PlayerMen running
[ 50] [182] Map Spawns Edito v17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 51] Custom Models v1.3.2 neugomon custom_models.a running
[ 52] GSClient:Prefix v1.0 AlexandrFiner gsc_prefix.amxx running
[ 53] Anti DD Scroll v1.0 Empower anti_dd_scroll. running
[ 54] Advanced Experience Sy v0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 55] AES: CStrike Addon v0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 56] AES: Informer v0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 57] AES: Admin Tools v0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 58] Night Mode v1.2.3 Radius night_mode.amxx running
[ 59] Map Manager: Core v3.0.4 Mistrick map_manager_cor running
[ 60] Map Manager: Scheduler v0.1.2 Mistrick map_manager_sch running
[ 61] Map Manager: Rtv v0.1.0 Mistrick map_manager_rtv running
[ 62] Map Manager: Nominatio v0.1.0 Mistrick map_manager_nom running
[ 63] Map Manager: BlockList v0.0.3 Mistrick map_manager_blo running
[ 64] Map Manager: Online so v0.0.2 Mistrick map_manager_onl running
[ 65] Map Manager: Effects v0.0.8 Mistrick map_manager_eff running
[ 66] Map Manager: Informer v0.0.5 Mistrick map_manager_inf running
[ 67] Lite Translit v2.8 neygomon lite_translit.a running
67 plugins, 65 running
- Автор плагина
- Vaqtincha
- Версия плагина
- 0.0.5
- Исходный код
-
// Copyright © 2016/2017 Vaqtincha
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define KFADE_HOLD_TIME 0.8 // Продолжительность
#define KFADE_FX_TIME 0.5 // Плавное исчезновение
#define VAULT_EXPIRE_DAYS 7 // Через сколько дней удалить настройку (если игрок не заходил)
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define MESSAGE_TYPE MSG_ONE_UNRELIABLE
// #define DEBUG
new const VAULT_FILE[] = "kscfade_data"
#define PL_VERSION "0.0.5"
#include <amxmodx>
#include <reapi>
#include <nvault_array>
#if AMXX_VERSION_NUM < 183
#define client_disconnected client_disconnect
#endif
#define IsBot(%1) (!g_aPlayerData[%1][AuthId][0])
const MAX_AUTHID_LENGHT = 32
const MENU_KEYS = (MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_0)
const KEY_EXIT = 10
const FADE_COLORS_RANDOM = 0
enum color_e { R, G, B }
enum player_s
{
AuthId[MAX_AUTHID_LENGHT],
State,
FadeColor,
AlphaPercent
}
enum
{
KSF_DISABLED,
KSF_ENABLED,
KSF_ONLY_HS
}
new const FADE_ALPHA[] = { 10, 20, 30, 40, 50, 60, 70, 80, 90 }
new const FADE_COLORS[][color_e] =
{
{0, 0, 0}, // random
{0, 127, 255}, // blue
{255, 127, 0}, // orange
{127, 0, 255}, // purple
{0, 255, 0}, // green
{255, 100, 150}, // pink
{255, 255, 255}, // white
{255, 0, 0} // red
}
new g_aPlayerData[MAX_CLIENTS + 1][player_s]
new g_hVault = INVALID_HANDLE
public plugin_end()
{
if(g_hVault != INVALID_HANDLE) {
nvault_close(g_hVault)
}
}
public plugin_cfg()
{
if((g_hVault = nvault_open(VAULT_FILE)) == INVALID_HANDLE) {
set_fail_state("[KSCFADE] ERROR: Opening nVault failed!")
}
else{
nvault_prune(g_hVault, 0, get_systime() - (86400 * VAULT_EXPIRE_DAYS))
}
}
public plugin_init()
{
register_plugin("Killer ScreenFade", PL_VERSION, "Vaqtincha")
register_menucmd(register_menuid("SettingsMenu"), MENU_KEYS, "SettingsMenuHandler")
register_clcmd("fade", "ClCmd_ScfMenu")
register_clcmd("say /fade", "ClCmd_ScfMenu")
register_clcmd("say_team /fade", "ClCmd_ScfMenu")
RegisterHookChain(RG_CSGameRules_PlayerKilled, "CSGameRules_PlayerKilled", .post = true)
// RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed", .post = true)
}
public client_disconnected(pClient) {
SaveUserInfo(pClient)
}
public client_putinserver(pClient)
{
g_aPlayerData[pClient][AuthId][0] = 0
if(is_user_bot(pClient) || is_user_hltv(pClient))
return
get_user_authid(pClient, g_aPlayerData[pClient][AuthId], MAX_AUTHID_LENGHT - 1)
if(nvault_get_array(g_hVault, g_aPlayerData[pClient][AuthId], g_aPlayerData[pClient], player_s) <= 0)
{
g_aPlayerData[pClient][State] = KSF_ENABLED
g_aPlayerData[pClient][FadeColor] = random(sizeof(FADE_COLORS))
g_aPlayerData[pClient][AlphaPercent] = random_num(2, 4)
}
#if defined DEBUG
static const szText[KSF_ONLY_HS + 1][] = { "disabled", "enabled", "hs only" }
server_print("^n[KSCFADE] Client: %s | State: %s | Color: %d | Alpha: %d", g_aPlayerData[pClient][AuthId],
szText[g_aPlayerData[pClient][State]], g_aPlayerData[pClient][FadeColor], g_aPlayerData[pClient][AlphaPercent])
#endif
}
public ClCmd_ScfMenu(const pPlayer)
{
if(!is_user_alive(pPlayer))
return PLUGIN_HANDLED
new szMenu[512], iKeys = (MENU_KEY_0|MENU_KEY_3)
new iLen = formatex(szMenu, charsmax(szMenu), "\yМеню Настройки^n^n")
static const szColText[sizeof(FADE_COLORS)][] = {"Рандомно", "Синий", "Оранжевый", "Фиолетовый", "Зеленый", "Розовый", "Белый", "Красный" }
static const szStateText[KSF_ONLY_HS + 1][] = { "\rОтключен", "\wВключен", "\wТолько хедшоте" }
if(g_aPlayerData[pPlayer][State] == KSF_DISABLED)
{
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen,
"\d1. Цвет: [%s]^n\
\d2. Прозрачность: [%d]^n^n",
szColText[g_aPlayerData[pPlayer][FadeColor]], FADE_ALPHA[g_aPlayerData[pPlayer][AlphaPercent]]
)
}
else
{
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen,
"\y1. \wЦвет\r: \y[\w%s\y]^n\
\y2. \wПрозрачность\r: \y[\w%d\y]^n^n",
szColText[g_aPlayerData[pPlayer][FadeColor]], FADE_ALPHA[g_aPlayerData[pPlayer][AlphaPercent]]
)
iKeys |= (MENU_KEY_1|MENU_KEY_2)
}
formatex(szMenu[iLen], charsmax(szMenu) - iLen,
"\y3. \wСостояние\r: \y[%s\y]^n^n^n\
\y0. \rСохранить и выйти", szStateText[g_aPlayerData[pPlayer][State]]
)
show_menu(pPlayer, iKeys, szMenu, -1, "SettingsMenu")
return PLUGIN_HANDLED
}
public SettingsMenuHandler(const pPlayer, const iKey)
{
if(iKey == KEY_EXIT - 1)
{
SaveUserInfo(pPlayer)
return PLUGIN_HANDLED
}
switch(iKey)
{
case 0:
{
if(++g_aPlayerData[pPlayer][FadeColor] >= sizeof(FADE_COLORS)) {
g_aPlayerData[pPlayer][FadeColor] = FADE_COLORS_RANDOM
}
new iCol = g_aPlayerData[pPlayer][FadeColor]
__UTIL_ScreenFade(pPlayer, iCol != FADE_COLORS_RANDOM ? FADE_COLORS[iCol] : FADE_COLORS[random_num(1, sizeof(FADE_COLORS) - 1)], FADE_ALPHA[g_aPlayerData[pPlayer][AlphaPercent]],
KFADE_FX_TIME, KFADE_HOLD_TIME
)
}
case 1:
{
if(++g_aPlayerData[pPlayer][AlphaPercent] >= sizeof(FADE_ALPHA)) {
g_aPlayerData[pPlayer][AlphaPercent] = 0
}
new iCol = g_aPlayerData[pPlayer][FadeColor]
__UTIL_ScreenFade(pPlayer, iCol != FADE_COLORS_RANDOM ? FADE_COLORS[iCol] : FADE_COLORS[random_num(1, sizeof(FADE_COLORS) - 1)], FADE_ALPHA[g_aPlayerData[pPlayer][AlphaPercent]],
KFADE_FX_TIME, KFADE_HOLD_TIME
)
}
case 2:
{
switch(g_aPlayerData[pPlayer][State])
{
case KSF_DISABLED:
{
g_aPlayerData[pPlayer][State] = KSF_ENABLED
// client_print(pPlayer, print_center, "ScreenFade Enabled!")
}
case KSF_ENABLED: g_aPlayerData[pPlayer][State] = KSF_ONLY_HS
case KSF_ONLY_HS:
{
g_aPlayerData[pPlayer][State] = KSF_DISABLED
client_print(pPlayer, print_center, "ScreenFade Disabled!")
}
}
}
}
return ClCmd_ScfMenu(pPlayer)
}
public CSGameRules_PlayerKilled(const pPlayer, const pevKiller, const pevInflictor)
{
if(pPlayer == pevKiller || pevKiller != pevInflictor /* ignore grenade kills */ || !is_user_alive(pevKiller))
return HC_CONTINUE
if(IsBot(pevKiller) || g_aPlayerData[pevKiller][State] == KSF_DISABLED)
return HC_CONTINUE
if(g_aPlayerData[pevKiller][State] == KSF_ENABLED || (g_aPlayerData[pevKiller][State] == KSF_ONLY_HS && get_member(pPlayer, m_bHeadshotKilled)))
{
new iCol = g_aPlayerData[pevKiller][FadeColor]
__UTIL_ScreenFade(pevKiller, iCol != FADE_COLORS_RANDOM ? FADE_COLORS[iCol] : FADE_COLORS[random_num(1, sizeof(FADE_COLORS) - 1)], FADE_ALPHA[g_aPlayerData[pevKiller][AlphaPercent]],
KFADE_FX_TIME, KFADE_HOLD_TIME
)
}
return HC_CONTINUE
}
SaveUserInfo(pPlayer)
{
if(!IsBot(pPlayer)) {
nvault_set_array(g_hVault, g_aPlayerData[pPlayer][AuthId], g_aPlayerData[pPlayer], player_s)
}
}
stock __UTIL_ScreenFade(const pPlayer, iColor[color_e], iAlpha, Float:flFxTime = 1.0, Float:flHoldTime = 1.0)
{
if(IsBlind(pPlayer))
return
const FFADE_IN = 0x0000
static iMsgIdScreenFade
if(iMsgIdScreenFade > 0 || (iMsgIdScreenFade = get_user_msgid("ScreenFade")))
{
message_begin(MESSAGE_TYPE, iMsgIdScreenFade, .player = pPlayer)
write_short(FixedUnsigned16(flFxTime))
write_short(FixedUnsigned16(flHoldTime))
write_short(FFADE_IN)
write_byte(iColor[R])
write_byte(iColor[G])
write_byte(iColor[B])
write_byte(iAlpha)
message_end()
}
}
stock FixedUnsigned16(Float:flValue, iScale = (1 << 12)) {
return clamp(floatround(flValue * iScale), 0, 0xFFFF)
}
stock bool:IsBlind(const pPlayer) {
return bool:(Float:get_member(pPlayer, m_blindStartTime) + Float:get_member(pPlayer, m_blindFadeTime) >= get_gametime())
}
// stock bool:IsBlind(const pPlayer) {
// return bool:(Float:get_member(pPlayer, m_blindUntilTime) > get_gametime())
// }
Не открывает меню плагина. Ошибок никаких нет. /close
6 Янв 2020