reapi_killer_screenfade

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
460
Реакции
68
Помог
7 раз(а)
Ошибка
L 03/18/2020 - 16:06:33: [AMXX] Plugin ("reapi_killer_screenfade.amxx") is setting itself as failed.
L 03/18/2020 - 16:06:33: [AMXX] Plugin says: [nVault Array] Can only use nvault_get_array() on data that was saved using nvault_set_array().
L 03/18/2020 - 16:06:33: [AMXX] Displaying debug trace (plugin "reapi_killer_screenfade.amxx", version "0.0.5")
L 03/18/2020 - 16:06:33: [AMXX] Run time error 1: forced exit
L 03/18/2020 - 16:06:33: [AMXX] [0] nvault_array.inc::nvault_get_array (line 107)
L 03/18/2020 - 16:06:33: [AMXX] [1] reapi_killer_screenfade.sma::client_putinserver (line 119)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263 (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: Oct 27 2019 16:23:31
Built from: https://github.com/alliedmodders/amxmodx/commit/15a14a0
Build ID: 5263:15a14a0
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.693-dev
Build date: 18:20:58 Jan 28 2020 (2117)
Build from: https://github.com/dreamstalker/rehlds/commit/c4cecf5
ReGamedll
ReGameDLL version: 5.14.0.456-dev
Build date: 12:02:14 Mar 13 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/9461d0
Версия 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.135 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 9] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[10] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl5 ANY Never
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[12] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl5 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[17] SxGeo RUN - sxgeo_amxx_i386.so v2.2 pl5 ANY Never
17 plugins, 17 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] FreshBans 1.4.2b kanagava fresh_bans_142_ running
[ 2] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 3] ScreenMaker 1.1 neygomon screen_maker.am running
[ 4] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am debug
[ 5] RC BaseChanger freesrv custom rc_basechanger. stopped
[ 6] ReChecker Logging freesrv custom rc_logging.amxx running
[ 7] Lite Admin ESP 1.1 neygomon, AcE admin_esp_ace.a running
[ 8] Admin Base 1.9.0.5263 AMXX Dev Team admin.amxx running
[ 9] Ping Control 1.33 neygomon+wopox+H ping_control_N_ running
[ 10] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 11] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx stopped
[ 12] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 13] Stats Configuration 1.10.0.525 AMXX Dev Team statscfg.amxx running
[ 14] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 15] Server Menu 1.5.0 F@nt0M server_menu.amx running
[ 16] Parachute 1.1 ReHLDS Team Parachute_ReHLD running
[ 17] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 18] Rock to Ban 1.02 Safety1st rock2ban.amxx running
[ 19] Players Menu 1.7 neugomon players_menu.am running
[ 20] [ReAPI] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 21] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc error
[ 22] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 23] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 24] Adverts 1.0 pUzzlik adverts_message running
[ 25] KiLL Assist poka_4to_b PRoSToTeM@ Kill_assist_rea running
[ 26] GameName Changer 1.0 neugomon gamename_change running
[ 27] [ReAPI] Damager 1.1 phe re_damager.amxx running
[ 28] Vzruv Golovu 1.0 eL vzruv_golovu.am running
[ 29] AntiFlood Change Name 28.11.2018 sergrib AntiFlood_Chang running
[ 30] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 Random_Weapons_ stopped
[ 31] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 32] Radio Hudmsg Block 1.0 AcE radio_hudmsg_bl running
[ 33] Advanced MapChooser 1.4 neygomon map_chooser.amx running
[ 34] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 35] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 36] Me Hp StatsX 1.35 AMXX Dev Team me_hp_statsx.am running
[ 37] Knife Duel with Telepo 1.2 neygomon knife_duel.amxx running
[ 38] [ReAPI] VIP System 1.3.1 pUzzlik re_vip_system_g running
[ 39] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
[ 40] BestAes 1.0 BestAes.amxx debug
[ 41] Ultimate KillStreak Ad 0.7 SAMURAI ut_killstreak_a running
[ 42] Weaponmenu 1.0 HARDCORE weaponmenu.amxx running
[ 43] [SxGeo] Connect Info 1.0 s1lent sxgeo_connect_i running
[ 44] Online Helper 2.1.3 Nordic Warrior online_helper.a running
[ 45] SpecList 1.2a FatalisDK speclist.amxx running
[ 46] Steam Models 0.1b+mod.l Freedo.m steam_models.am running
[ 47] Lite Translit 2.8 neygomon lite_translit_c running
[ 48] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 49] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 50] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 51] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 52] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste stopped
[ 53] AES: Bonus CSTRIKE 0.5.9 [REA serfreeman1337/s aes_bonus_cstri stopped
[ 54] Grab Modular 1.0.2 w0w grab/grab_modul debug
[ 55] Grab Menu: Core 1.0.3 w0w grab/grab_menu/ running
[ 56] Grab Menu: Freeze 1.0.0 w0w grab/grab_menu/ running
[ 57] Grab Menu: Kick 1.0.0 w0w grab/grab_menu/ running
[ 58] Grab Menu: Kill 1.0.0 w0w grab/grab_menu/ running
[ 59] Grab Menu: Strip Weapo 1.0.0 w0w grab/grab_menu/ running
[ 60] Grab Menu: Team Change 1.0.0 w0w grab/grab_menu/ running
[ 61] Grab: Hit 1.0.0 w0w grab/grab_hit.a running
[ 62] Grab: No Fall Damage A 1.0.0 w0w grab/grab_no_fa running
[ 63] Grab: Notify on Grab 1.0.0 w0w grab/grab_notif running
[ 64] Grab: Pull 1.0.0 w0w grab/grab_pull. running
[ 65] Grab: Push 1.0.0 w0w grab/grab_push. running
[ 66] Grab: Rendering 1.0.0 w0w grab/grab_rende debug
[ 67] Grab: Throw on Drop 1.0.0 w0w grab/grab_throw running
[ 68] Chats Additions Core 1.0.0-beta Sergey Shorokhov ChatAdditions_C debug
[ 69] [CA] Gag 1.0.0-beta Sergey Shorokhov CA_Gag.amxx debug
[ 70] [CA] Mute menu 1.0.0-beta Sergey Shorokhov CA_Mute.amxx debug
( 21) Error: [nVault Array] Can only use nvault_get_array() on data that was saved using nvault_set_array().
70 plugins, 64 running
Автор плагина
Vaqtincha
Версия плагина
0.0.5
Исходный код
// Copyright © 2016/2017 Vaqtincha

#define KFADE_HOLD_TIME 0.4 // Продолжительность
#define KFADE_FX_TIME 0.2 // Плавное исчезновение
#define VAULT_EXPIRE_DAYS 10 // Через сколько дней удалить настройку (если игрок не заходил)

#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>

#define DEFAULT_FADE_COLOR FADE_COLORS_BLUE // see "enum FadeColors"

#if (AMXX_VERSION_NUM < 183)
#include <colorchat>
#endif
#define client_disconnect client_disconnected

#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
enum any:FadeColors

{
FADE_COLORS_RANDOM = 0,
FADE_COLORS_BLUE,
FADE_COLORS_ORANGE,
FADE_COLORS_PURPLE,
FADE_COLORS_GREEN,
FADE_COLORS_PINK,
FADE_COLORS_WHITE,
FADE_COLORS_RED
}

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[FadeColors][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] = DEFAULT_FADE_COLOR
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))
{
client_print_color(pPlayer, print_team_default, "^1[^4ScreenFade^1] ^3Доступно только для живых ^4игроков^3!")
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())
// }
Всем привет. Помогите исправить. Отказался работать вообще.
P.S исходник немножко переделал под себя.
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
110
Реакции
6
Помог
2 раз(а)
better to use the default plugins without modifications.

i have the plugin working :)
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
egcmasti, The error does not apply to changes in the plugin. Since I just added the output of the message and painted it in colors.
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
Проблему решил откатом до оригинала версии 0.0.5 и вновь редактированием под себя. Можно закрыть.
 
Статус
В этой теме нельзя размещать новые ответы.

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

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