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

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

Error say_me_hp

Сообщения
121
Реакции
11
Помог
1 раз(а)
Ошибка
L 02/11/2021 - 20:12:32: [ReAPI] get_member: invalid or uninitialized entity
L 02/11/2021 - 20:12:32: [AMXX] Displaying debug trace (plugin "say_me_hp.amxx", version "1.0")
L 02/11/2021 - 20:12:32: [AMXX] Run time error 10: native error (native "get_member")
L 02/11/2021 - 20:12:32: [AMXX] [0] say_me_hp.sma::CBasePlayer_Killed (line 237)
ОС
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
Автор плагина
Javekson
Версия плагина
1.0
Исходный код
#include <amxmodx>

#include <reapi>



#pragma semicolon 1



const VIP_FLAG = ADMIN_LEVEL_H;

const NAME_STRLEN = 32;

const BUFFER_STRLEN = 256;

const WEAPON_STRLEN = 32;

const ORIGIN_ARRAYLEN = 3;

const GRENADE_ITEMID = 4;

const Float:COEFF_DISTANCE = 0.0254;



enum _:ME {

ME_KILLS,

ME_DAMAGE,

ME_HITS

}



enum _:HP {

HP_KILLER_ID,

HP_WEAPON_ID,

Float:HP_LIFE,

Float:HP_ARMOR,

Float:HP_DISTANCE

}



enum _:HITBOX {

NONE,

HEAD,

CHEST,

STOMACH,

LEFTARM,

RIGHTARM,

LEFTLEG,

RIGHTLEG,

SHIELD

}



enum _:WEAPON_INFO {

WI_WEAPON_ID,

WI_WEAPON_NAME[WEAPON_STRLEN]

}



new const PART_BODY[][] = {

"-", "cap", "piept",

"stomac", "bratul stang", "bratul drept",

"piciorul stang", "piciorul drept", "scut"

};



new const WEAPONS[][WEAPON_INFO] = {

{1, "P228"}, {2, "GLOCK"}, {3, "SCOUT"},

{4, "GRENADE"}, {5, "XM1014"}, {7, "MAC10"},

{8, "AUG"}, {10, "ELITE"}, {11, "FIVESEVEN"},

{12, "UMP45"}, {13, "SG550"}, {14, "GALIL"},

{15, "FAMAS"}, {16, "USP"}, {17, "GLOCK18"},

{18, "AWP"}, {19, "MP5N"}, {20, "M249"},

{21, "M3"}, {22, "M4A1"}, {23, "TMP"},

{24, "G3SG1"}, {26, "DEAGLE"}, {27, "SG552"},

{28, "AK47"}, {29, "KNIFE"}, {30, "P90"},

};



new g_eMe[MAX_PLAYERS + 1][ME];

new g_eHP[MAX_PLAYERS + 1][HP];

new g_eHitBox[MAX_PLAYERS + 1][HITBOX];

new bool:g_bVIP[MAX_PLAYERS + 1];



public plugin_init() {

register_plugin("Say Me And HP", "1.0", "Javekson");



RegisterHookChain(RG_CBasePlayer_TakeDamage, "CBasePlayer_TakeDamage", .post = true);

RegisterHookChain(RG_CSGameRules_RestartRound, "CSGameRules_RestartRound", .post = true);

RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed", .post = true);



register_clcmd("say /me", "ClCmdMe");

register_clcmd("say_team /me", "ClCmdMe");

register_clcmd("say /hp", "ClCmdHP");

register_clcmd("say_team /hp", "ClCmdHP");

}



public client_putinserver(id) {

g_bVIP[id] = get_user_flags(id) & VIP_FLAG ? true : false;

}



public CBasePlayer_TakeDamage(const iVictim, const pevInflictor, const iAttacker, const Float:fDamage) {

if(!is_user_connected(iAttacker) || iVictim == iAttacker) return HC_CONTINUE;



g_eMe[iAttacker][ME_DAMAGE] += floatround(fDamage, floatround_floor);

g_eMe[iAttacker][ME_HITS]++;



new iHitBox = get_member(iVictim, m_LastHitGroup);

g_eHitBox[iAttacker][iHitBox]++;



return HC_CONTINUE;

}



public CBasePlayer_Killed(const iVictim, const iKiller) {

if(!is_user_connected(iKiller) || iVictim == iKiller) return HC_CONTINUE;



if(get_member(iVictim, m_bKilledByBomb)) return HC_CONTINUE;



g_eMe[iKiller][ME_KILLS]++;



g_eHP[iVictim][HP_KILLER_ID] = iKiller;



new Float:fVictimOrigin[ORIGIN_ARRAYLEN], Float:fKillerOrigin[ORIGIN_ARRAYLEN];

get_entvar(iVictim, var_origin, fVictimOrigin);

get_entvar(iKiller, var_origin, fKillerOrigin);



g_eHP[iVictim][HP_DISTANCE] = get_distance_f(fVictimOrigin, fKillerOrigin) * COEFF_DISTANCE;



g_eHP[iVictim][HP_LIFE] = get_entvar(iKiller, var_health);

g_eHP[iVictim][HP_ARMOR] = get_entvar(iKiller, var_armorvalue);



if(get_member(iVictim, m_bKilledByGrenade)) {

g_eHP[iVictim][HP_WEAPON_ID] = GRENADE_ITEMID;

} else {

new iActiveItem = get_member(iKiller, m_pActiveItem);

g_eHP[iVictim][HP_WEAPON_ID] = get_member(iActiveItem, m_iId);

}



ClCmdHP(iVictim); ClCmdMe(iVictim);



return HC_CONTINUE;

}



public CSGameRules_RestartRound() {

arrayset(g_eMe[0], 0, sizeof(g_eMe) * sizeof(g_eMe[]));

arrayset(g_eHP[0], 0, sizeof(g_eHP) * sizeof(g_eHP[]));

arrayset(g_eHitBox[0], 0, sizeof(g_eHitBox) * sizeof(g_eHitBox[]));

}



public ClCmdMe(const id) {

if(is_user_alive(id) && !g_bVIP[id]) {

client_print_color(id, print_team_red, "^4[CS] ^1Aceasta comanda este disponibila doar jucatorilor ^3morti ^1sau ^3VIP");

return PLUGIN_CONTINUE;

}



if(!g_eMe[id][ME_DAMAGE]) {

client_print_color(id, print_team_red, "^4* Nu ai lovit pe nimeni");

return PLUGIN_CONTINUE;

}



client_print_color(id, print_team_red, "^4[CS] ^1Ai provocat ^3%d damage ^1, omorand ^3%d jucatori ^1, lovind de ^3%d ori", g_eMe[id][ME_DAMAGE], g_eMe[id][ME_KILLS], g_eMe[id][ME_HITS]);



new iLen, sBuffer[BUFFER_STRLEN];

for(new i = 1; i < sizeof(PART_BODY); i++) {

if(!g_eHitBox[id][i]) continue;

iLen += formatex(sBuffer[iLen], charsmax(sBuffer) - iLen, " ^4%s: ^3%d", PART_BODY[i], g_eHitBox[id][i]);

}



if(iLen) {

client_print_color(id, print_team_red, "^4[CS]%s", sBuffer);

}



return PLUGIN_CONTINUE;

}



public ClCmdHP(const id) {

if(!g_eHP[id][HP_KILLER_ID]) {

client_print_color(id, print_team_red, "^4[CS] ^3Nu te-a omorat nimeni.");

return PLUGIN_CONTINUE;

}



new sName[NAME_STRLEN];

get_user_name(g_eHP[id][HP_KILLER_ID], sName, charsmax(sName));



new sWeaponName[WEAPON_STRLEN];

for(new i; i < sizeof WEAPONS; i++) {

if(WEAPONS[i][WI_WEAPON_ID] == g_eHP[id][HP_WEAPON_ID]) {

formatex(sWeaponName, charsmax(sWeaponName), WEAPONS[i][WI_WEAPON_NAME]);

break;

}

}



client_print_color(id, print_team_red, "^4[CS] ^1Omorat de: ^4%s ^1cu ^3%s^1 de la distanta de ^3%dm. ^1El mai are: [^4%dHP %dAP^1]",

sName,

sWeaponName,

floatround(g_eHP[id][HP_DISTANCE], floatround_ceil),

floatround(g_eHP[id][HP_LIFE], floatround_floor),

floatround(g_eHP[id][HP_ARMOR], floatround_floor)

);



return PLUGIN_CONTINUE;

}
.
 
Сообщения
1,546
Реакции
488
Предупреждения
1
Помог
28 раз(а)
Код:
new iActiveItem = get_member(iKiller, m_pActiveItem);

+if(is_nullent(iActiveItem)) return HC_CONTINUE;
 

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

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