• Регистрация на форуме отключена.
    Она будет открываться первого числа каждого месяца на 24 часа.

    Если необходимо - пишите админу группы Dev-CS в Telegram-чате.

Plugin InfoKiller error

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
140
Реакции
13
Помог
1 раз(а)
Ошибка
L 02/10/2021 - 21:54:46: [ReAPI] rg_get_weapon_info: invalid weapon id 0
L 02/10/2021 - 21:54:46: [AMXX] Displaying debug trace (plugin "Info_Killer.amxx", version "1.1.0")
L 02/10/2021 - 21:54:46: [AMXX] Run time error 10: native error (native "rg_get_weapon_info")
L 02/10/2021 - 21:54:46: [AMXX] [0] Info_Killer.sma::CBasePlayer_TakeDamage (line 81)
ОС
Linux
Amx Mod X
1.9.0.5271
Билд
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.698-dev
Build date: 10:14:22 Aug 19 2020 (2321)
Build from: https://github.com/dreamstalker/rehlds/commit/376bc15
ReGamedll
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aae507c
Версия 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.92d ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl5 ANY Never
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[12] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[14] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[16] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[17] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
[18] Fun RUN - fun_amxx_i386.so v1.9.0.5271 pl5 ANY ANY
18 plugins, 18 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 2] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 3] WebHS 0.1 kanagava fb_web_online.a running
[ 4] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 5] Team Select 1.5.0 [email protected] teamselect.amxx running
[ 6] [190] Cvar On Map 20.06.06 SKAJIbnEJIb cvar_on_map.amx running
[ 7] Gag System 1.1 TheRedShoko @ AM gag_system.amxx running
[ 8] [SQL] Chat Manager 1.1.1-13 Mistrick chatmask.amxx running
[ 9] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 10] [ReAPI] Anti overflow 1.0 Some Author antioverflow.am running
[ 11] [190] Damager RBS 20.06.06 SKAJIbnEJIb damager_rbs.amx running
[ 12] Advanced Mute 2.1 OciXCrom crx_advmute.amx running
[ 13] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 14] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 15] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 16] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 17] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 18] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 19] AES Bonus: Flags 0.2 Sonyx aes_bonus_flags running
[ 20] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 21] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 22] Admin Load 3.9.3 Dev [email protected] adminload.amxx running
[ 23] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 24] Lista admini (amx_who) cs.leaguec Kobra whobun.amxx running
[ 25] unknown unknown unknown flash.amxx running
[ 26] Team Transfer 2.1 UnFoRgIvEn transfer_chat.a running
[ 27] MOTD Commands 1.3 OciXCrom crx_motdcommand running
[ 28] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 29] Commands Menu 1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 30] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 31] SHOW IP + LAST IP 2.0 Alka + x amx_showip_last running
[ 32] Players Menu 1.7 neugomon players_menu.am running
[ 33] Pause Plugins 1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 34] Admin Help 1.9.0.5271 AMXX Dev Team adminhelp.amxx running
[ 35] Plugin Menu 1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 36] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running
[ 37] Private Message: Core 1.5 Denzer private_message running
[ 38] Private Message: Loggi 1.3 Denzer private_message running
[ 39] Items Restrict 1.1 s1lent items_restrict. running
[ 40] Server Menu 1.5.0 [email protected] server_menu.amx debug
[ 41] Advanced Spam Nick Cha 0.2 Fullserver advanced_spam_n running
[ 42] Multi-Lingual System 1.9.0.5271 AMXX Dev Team multilingual.am running
[ 43] Whatsapp_Group_Request 3.2 CrAzY MaN whatsapp_group_ running
[ 44] SERVER TASKS 2.0 HATTRICK (HTTRCK server_tasks.am running
[ 45] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 46] unknown unknown unknown fake.amxx running
[ 47] CS AFK Manager 1.0.6 (amx Freeman afk_manager_1-8 running
[ 48] Ping Faker 1.5a MeRcyLeZZ pingfaker_count running
[ 49] Ultimele Harti 1.0 [email protected][email protected] harti.amxx running
[ 50] CFG Slash 1.0 aNNakin cfg_slash.amxx running
[ 51] Fall Damage HP Restore 0.0.1 Vaqtincha FallDamageHpRes running
[ 52] WeaponState Remember 0.0.4 Vaqtincha weaponstate_rem running
[ 53] Admin Commands Log 1.2 w0w admin_commands_ running
[ 54] ResetScore 1.0 Leo_[BH] resetscore_reap running
[ 55] Reklama 09.07.2019 mx?! reklama.amxx running
[ 56] [190] Warmup RBS 20.08.08 SKAJIbnEJIb warmup_rbs.amxx running
[ 57] [190] Ultimate Flags 20.06.06 SKAJIbnEJIb ultimate_flags. running
[ 58] Slap/Slay Team 1.0 Kobra slaylslapteam.a running
[ 59] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 60] Check Vip 2.0 Leo_[BH] check.amxx running
[ 61] Map Manager: Core 3.0.7 Mistrick map_manager_cor running
[ 62] Map Manager: Scheduler 0.1.5 Mistrick map_manager_sch running
[ 63] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 64] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 65] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 66] Map Manager: Effects 0.0.9 Mistrick map_manager_eff running
[ 67] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 68] Map Manager: Advanced 0.0.5 Mistrick map_manager_adv running
[ 69] Map Manager: Online ch 1.0.0 Sergey Shorokhov map_manager_onl running
[ 70] FocusOnVotemap 1.2.1 Boec[SpecOPs] focus_on_votema running
[ 71] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 72] Voiceserver Connect 1.1.015 Nextra voiceserver_con running
[ 73] Hide 1.1 xPaw hidexpaw.amxx running
[ 74] M_AntiRusher 2.83 Miczu xPaw_Antirusher running
[ 75] Say Me And HP 1.0 Javekson say_me_hp.amxx running
[ 76] [ReAPI] Info Killer 1.1.0 Jumper Info_Killer.amx debug
[ 77] Save score & money 1.2.4 Minni Mouse Save_Score_and_ running
[ 78] Boost Server Payment 1.0 JazZ. boostsv.amxx running
[ 79] Hostname Timeleft 1.0 xPaw HostnameTimelef running
[ 80] [ReAPI] Block 'Fire in 0.0.1 sergrib simpleblockfith running
[ 81] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 82] Write MS 0.1 ill log_ms.amxx running
[ 83] Advanced Kill Assists 0.9 Spection lite_kill_assis running
[ 84] Top Awards 0.2cx Safety1st top_awards2.amx running
[ 85] [ReApi] Killer ScreenF 0.0.4 Vaqtincha reapi_killer_sc running
[ 86] Steam Bonus 1.1 [email protected] steam_bonus_a2. running
[ 87] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 88] [ReAPI] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 89] Remove Dead Bodies 1.0 Amxx Community mortii.amxx running
[ 90] Online Logger 1.0.3 mx?! online_logger.a running
[ 91] Real Game Time 1.0 mx?! real_game_time. running
[ 92] Game Messages & Sounds 3.0.1 OciXCrom crx_gamemessage running
[ 93] [190] C4 Destroyer 20.08.30 SKAJIbnEJIb c4_destroyer.am running
[ 94] Bet 2.2 Filip Vilicic bet.amxx running
[ 95] Style C4 Timer 3.0 OciXCrom crx_c4timer.amx running
[ 96] [190] Stimulation RBS 20.06.06 SKAJIbnEJIb stimulation_rbs running
[ 97] Slay Losers 1.1.6 [email protected] slay_losers.amx running
[ 98] Quick and No Scope Det 1.2 EFFx QuickNoScopeD.a running
[ 99] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
99 plugins, 99 running
Автор плагина
Jumper
Версия плагина
1.1.0
Исходный код
#pragma semicolon 1

#include <amxmodx>
#include <reapi>

new const VERSION[] = "1.1.0";
new const CONFIG_NAME[] = "InfoKiller.cfg";

enum any:CVAR_LIST {
ANNOUNCE,
HUD_RED,
HUD_GREEN,
HUD_BLUE,
Float:HUD_X,
Float:HUD_Y,
Float:HUD_HOLD_TIME
};

new g_iDamage[MAX_PLAYERS +1][MAX_PLAYERS +1], g_iHits[MAX_PLAYERS +1][MAX_PLAYERS +1], g_Cvar[CVAR_LIST];

public plugin_init() {
register_plugin("[ReAPI] Info Killer", VERSION, "Jumper");

RegisterCvars();

RegisterHookChain(RG_CBasePlayer_TakeDamage, "CBasePlayer_TakeDamage", true);
RegisterHookChain(RG_CBasePlayer_Spawn, "CBasePlayer_Spawn", true);

register_dictionary("InfoKiller.txt");
}

public plugin_cfg() {
new filedir[MAX_RESOURCE_PATH_LENGTH];
get_localinfo("amxx_configsdir", filedir, charsmax(filedir));
format(filedir, charsmax(filedir), "%s/%s", filedir, CONFIG_NAME);

if(file_exists(filedir)) {
server_cmd("exec %s", filedir);
} else {
set_fail_state("File '%s' not found!", filedir);
}
}

public CBasePlayer_Spawn(id) {
for (new i = 1; i <= MaxClients; i++) {
g_iDamage[id][i] = 0;
g_iHits[id][i] = 0;
}
}

public client_disconnected(id) {
for (new i = 1; i <= MaxClients; i++) {
g_iDamage[i][id] = 0;
g_iHits[i][id] = 0;
}
}

public CBasePlayer_TakeDamage(const victim, pevInflictor, attacker, Float:flDamage) {
if(victim == attacker || !is_user_connected(attacker) || !rg_is_player_can_takedamage(victim, attacker)) {
return HC_CONTINUE;
}
g_iDamage[attacker][victim] += floatround(flDamage);
g_iHits[attacker][victim]++;

if(!is_user_alive(victim)){
new WeaponIdType:wID;

if (get_member(victim, m_bKilledByBomb)) {
wID = WEAPON_C4;
} else if(get_member(victim, m_bKilledByGrenade)) {
wID = WEAPON_HEGRENADE;
} else {
new ActiveItem = get_member(attacker, m_pActiveItem);

if(!is_nullent(ActiveItem)) {
wID = get_member(ActiveItem, m_iId);
}
}

new wName[24];
rg_get_weapon_info(wID, WI_NAME, wName, charsmax(wName));

if(g_Cvar[ANNOUNCE] == 0) {
if(g_iDamage[victim][attacker] > 0) {
client_print_color(
victim,
attacker,
"%L",
LANG_PLAYER,
"INFO_KILLER_CHAT1",
attacker,
Float:get_entvar(attacker, var_health),
wName[7]
);
client_print_color(
victim,
attacker,
"%L",
LANG_PLAYER,
"INFO_KILLER_CHAT2",
g_iDamage[attacker][victim],
g_iHits[attacker][victim],
attacker
);
client_print_color(
victim,
attacker,
"%L",
LANG_PLAYER,
"INFO_KILLER_CHAT3",
g_iDamage[victim][attacker],
g_iHits[victim][attacker],
attacker
);
} else {
client_print_color(
victim,
attacker,
"%L",
LANG_PLAYER,
"INFO_KILLER_CHAT1",
attacker,
Float:get_entvar(attacker, var_health),
wName[7]
);
client_print_color(
victim,
attacker,
"%L",
LANG_PLAYER,
"INFO_KILLER_CHAT2",
g_iDamage[attacker][victim],
g_iHits[attacker][victim],
attacker
);
}
} else if(g_Cvar[ANNOUNCE] == 1) {
set_hudmessage(
.red = g_Cvar[HUD_RED],
.green = g_Cvar[HUD_GREEN],
.blue = g_Cvar[HUD_BLUE],
.x = g_Cvar[HUD_X],
.y = g_Cvar[HUD_Y],
.holdtime = g_Cvar[HUD_HOLD_TIME]
);

if(g_iDamage[victim][attacker] > 0) {
show_hudmessage(
victim,
"%L",
LANG_PLAYER,
"INFO_KILLER_HUD",
attacker,
Float:get_entvar(attacker, var_health),
wName[7],
g_iDamage[attacker][victim],
g_iHits[attacker][victim],
g_iDamage[victim][attacker],
g_iHits[victim][attacker]
);
} else {
show_hudmessage(
victim,
"%L",
LANG_PLAYER,
"INFO_KILLER_HUD_NO_DMG",
attacker,
Float:get_entvar(attacker, var_health),
wName[7],
g_iDamage[attacker][victim],
g_iHits[attacker][victim]
);
}
}

g_iDamage[attacker][victim] = 0;
g_iHits[attacker][victim] = 0;
}

return HC_CONTINUE;
}

RegisterCvars() {
bind_pcvar_num(
create_cvar(
.name = "announce",
.string = "1",
.flags = FCVAR_NONE,
.has_min = true,
.min_val = 0.0,
.has_max =true,
.max_val = 1.0
), g_Cvar[ANNOUNCE]
);
bind_pcvar_num(
create_cvar(
.name = "hud_red",
.string = "200",
.flags = FCVAR_NONE
), g_Cvar[HUD_RED]
);
bind_pcvar_num(
create_cvar(
.name = "hud_green",
.string = "205",
.flags = FCVAR_NONE
), g_Cvar[HUD_GREEN]
);
bind_pcvar_num(
create_cvar(
.name = "hud_blue",
.string = "255",
.flags = FCVAR_NONE
), g_Cvar[HUD_BLUE]
);
bind_pcvar_float(
create_cvar(
.name = "hud_x",
.string = "-1.0",
.flags = FCVAR_NONE
), g_Cvar[HUD_X]
);
bind_pcvar_float(
create_cvar(
.name = "hud_y",
.string = "0.65",
.flags = FCVAR_NONE
), g_Cvar[HUD_Y]
);
bind_pcvar_float(
create_cvar(
.name = "hud_hold_time",
.string = "7.0",
.flags = FCVAR_NONE,
.has_min = true,
.min_val = 1.0
), g_Cvar[HUD_HOLD_TIME]
);
}

public OnConfigsExecuted() {
register_cvar("re_info_killer", VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED);
}
.
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
1,575
Реакции
500
Предупреждения
1
Помог
31 раз(а)
Try
Код:
if(!is_nullent(ActiveItem)) {
                wID = get_member(ActiveItem, m_iId);         
            }
+else return HC_CONTINUE;
 
Статус
В этой теме нельзя размещать новые ответы.

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

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