Участник
Пользователь
- Сообщения
- 194
- Реакции
- 43
- Помог
- 4 раз(а)
- Ошибка
-
L 04/04/2022 - 23:06:46: [ReAPI] rg_get_weapon_info: invalid weapon id 0
L 04/04/2022 - 23:06:46: [AMXX] Displaying debug trace (plugin "Info_Killer.amxx", version "1.1.0")
L 04/04/2022 - 23:06:46: [AMXX] Run time error 10: native error (native "rg_get_weapon_info")
L 04/04/2022 - 23:06:46: [AMXX] [0] Info_Killer.sma::CBasePlayer_TakeDamage (line 81)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0 5294
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.773-dev
Build date: 13:43:28 Feb 22 2022 (2873)
Build from: https://github.com/dreamstalker/rehlds/commit/2f0a402
- ReGamedll
-
game version
ReGameDLL version: 5.21.0.546-dev
Build date: 15:32:48 Dec 28 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/09a6c61
- Версия Metamod
-
meta version
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.2 Beta 3 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] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 6] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[10] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl6 ANY Never
[11] AuthEmu RUN - authemu_amxx_i386.so v5.2.12.431 pl6 ANY Never
[12] Admins Kit RUN - adminskit_amxx_i386.so v2.1.0 pl6 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.21.0.252-dev pl6 ANY Never
[14] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[15] IPHub Client RUN - iphubclient_amxx_i386.so v1.0.1 pl6 ANY Never
[16] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[17] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[18] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[19] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[20] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl6 ANY ANY
20 plugins, 20 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] ScreenMaker 1.1 neygomon screen_maker.am running
[ 2] DopBan 3.0.8b kanagava dop_ban.amxx running
[ 3] GameCMS_API 5.6.0 zhorzh78 gamecms_api.amx running
[ 4] FreshBans 1.4.6b kanagava fresh_bans.amxx running
[ 5] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 6] AuthEmu API 1.0 Dev-MS Team authemu.amxx running
[ 7] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am debug
[ 8] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 9] Advanced Ultimate Weap 0.1.1b steelzzz auw.amxx running
[ 10] VIP System 0.0.8 steelzorrr vip_system.amxx running
[ 11] AWP Limit 0.12 mx?! awp_limit.amxx running
[ 12] [ReAPI] Healthnade 0.0.4f F@nt0M + mx?! reapi_healthnad running
[ 13] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 14] Menus Front-End 1.4 gyxoBka menufront.amxx running
[ 15] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 16] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 17] Players Menu 1.7 neugomon plmenu.amxx running
[ 18] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 19] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 20] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 21] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 22] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 23] AES: StatsX 0.6 Vega[R serfreeman1337/s aes_statsx_cstr running
[ 24] [ReAPI] Info Killer 1.1.0 Jumper Info_Killer.amx running
[ 25] Items Restrict 1.0 ReHLDS Team items_restrict. running
[ 26] Revive Die Players 2.3.2 Emma Jule revive_teammate running
[ 27] Throw knife 1.0.0 medusa throw_knife.amx debug
[ 28] AFK Control ReNew 1.3 neygomon afk_control.amx running
[ 29] DemoRecoder 1.2 neygomon amx_demorec.amx running
[ 30] Reklama 20.05.2020 mx?! reklama.amxx running
[ 31] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 32] [ReAPI:AMXX] Buy Nades 0.0.3a steelzorrr buy_nades_limit running
[ 33] Buy ResetScore 1.0 mx?! buy_resetscore. debug
[ 34] Show Damage 1.0.0 fl0wer damager.amxx running
[ 35] Custom Smoke 1.1 medusa custom_smoke.am running
[ 36] GameName Changer 1.0 mx?! gamename_change running
[ 37] Advanced Kill Assists 1.3c Xelson kill_assist.amx running
[ 38] Mode 2x2 2.5re s1lent mode.amxx running
[ 39] [ReAPI] No Team Flash 1.0 ReHLDS Team noteamflash.amx running
[ 40] [ReAPI] Parachute 1.1 ReHLDS Team & me parachute_lite. running
[ 41] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 42] Recoil Control 1.1 mx?! recoil_control.amx running
[ 43] [ReAPI] Block Fire in 3.1.0 F@nt0M reapi_block_fit running
[ 44] Frags Counter 1.0 CHEL74 frags_counter.a running
[ 45] Steam Bonus 1.1 mx?! steam_bonus_vip running
[ 46] SlayNoobs 0.1 Vaqtincha slay_noobs.amxx running
[ 47] [ReAPI] Random Weapons 2.4.9+1 neugomon/h1k3 warmup.amxx 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 running
[ 53] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 54] ChatAdditions: Core 1.9.1 Sergey Shorokhov ChatAdditions_C running
[ 55] ChatAdditions: GameCMS 1.9.1 Sergey Shorokhov CA_Storage_Game running
[ 56] CA: Mute 1.9.1 Sergey Shorokhov CA_Mute.amxx running
[ 57] CA: Gag 1.9.1 Sergey Shorokhov CA_Gag.amxx running
[ 58] Custom Player Models A 0.2.1 F@nt0M & BlackSi custom_player_m running
[ 59] Custom Player Models C 0.2.2 BlackSignature custom_player_m running
[ 60] Custom Player Models T 0.2.1 BlackSignature custom_player_m running
[ 61] Map Manager: Core 3.1.4 Mistrick map_manager_cor running
[ 62] Map Manager: Scheduler 0.1.9 Mistrick map_manager_sch running
[ 63] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 64] Map Manager: Nominatio 0.2.0 Mistrick map_manager_nom debug
[ 65] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 66] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 67] Map Manager: Effects 0.1.0 Mistrick map_manager_eff running
[ 68] Map Manager: Informer 0.0.5 Mistrick map_manager_inf debug
[ 69] Map Manager: Advanced 0.1.0 Mistrick map_manager_adv running
[ 70] Block Change Name 1.0.0 unit pr_block_change running
[ 71] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
71 plugins, 71 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);
}
также посыпались ошибки
В этой теме было размещено решение! Перейти к решению.