Плагин аптечка после смерти, серв падает с ошибкой Host_Error: WriteDest_Parm: not a client

bake2

Пользователь
Регистрация
3 Окт 2019
Сообщения
137
Симпатии
3
OS
Linux
Amx Mod X
AMXX 1.9.0
Билд
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)
Metamod
Metamod-r v1.3.0.128, API (5:13) Metamod-r build: 17:47:54 Aug 24 2018
Meta модули
Код:
[ 1] YaPB RUN - yapb.so v2.92 ini Chlvl ANY
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 7] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 9] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[10] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[12] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[16] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[19] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl7 ANY ANY
[20] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl7 ANY Never
[21] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl7 ANY Never
21 plugins, 21 running
Плагины
Код:
[ 1] AMXBans: Core Gm 1.6 Larte Team amxbans_core.am running
[ 2] AMXBans: Main Gm 1.6 Larte Team amxbans_main.am running
[ 3] FreshBans 1.3.8b kanagava fresh_bans.amxx running
[ 4] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
[ 5] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 6] Server Menu 1.5.0 F@nt0M server_menu.amx debug
[ 7] Menus Front-End 1.9.0.5235 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.7 neugomon plmenu.amxx running
[ 10] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 11] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 12] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 13] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 14] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 15] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 16] Restrict Weapons 1.9.0.5217 AMXX Dev Team restmenu.amxx running
[ 17] StatsX 1.9.0.5217 AMXX Dev Team statsx.amxx running
[ 18] NextMap 1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 19] Reklama 16.03.2020 mx?! reklama.amxx running
[ 20] Damager 2.0 Prayer damager.amxx running
[ 21] FullSpawns 1.0 Eg@r4$il{ FullSpawns.amxx running
[ 22] Advanced Kill Assists 1.2c Xelson next21_kill_ass running
[ 23] VoteGag 1.0 sNk votegag.amxx running
[ 24] [182] Demo Recorder RB 18.02.08 SKAJIbnEJIb demorecorder_rb running
[ 25] [183] SlayLosers RBS 19.09.02 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 26] [182] Parachute RBS 17.12.12 KRoT@L/JTP10181 parachute_rbs.a running
[ 27] Access 1.0 Mandar1n access4.amxx running
[ 28] mute menu 1.0 cheap_suit mutemenu.amxx running
[ 29] Rock to Ban 1.02 Safety1st rock2ban.amxx running
[ 30] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 31] Reset_Score 1.0 FBR resetscore.amxx running
[ 32] [ReAPI] Round Balancer 1.1 neygomon round_balancer. debug
[ 33] Lite Admin ESP 1.1 neygomon, AcE admin_esp2.amxx running
[ 34] Ping Faker 1.4 MeRcyLeZZ pingfaker.amxx running
[ 35] COLORS MENU 1.2 DUKKHAZ0R color.amxx running
[ 36] Nice Killer 1.6 Got Milk? / HoHo nice_killer.amx running
[ 37] WeaponState Remember 0.0.4 Vaqtincha weaponstate_rem running
[ 38] GameName Changer 1.0 neugomon gamename_change running
[ 39] C4 Timer 1.1 SAMURAI & Remod: c4_timer.amxx running
[ 40] C4 Sprites Timer 0.1.0 ConnorMcLeod c4_timer_spr.am running
[ 41] [ReAMX] Ultimate Weapo 19.11.29 SKAJIbnEJIb ultimate_weapon running
[ 42] [ReAMX] VIP RBS 19.12.09 SKAJIbnEJIb vip_rbs.amxx running
[ 43] [reAPI] Flash Control 1.1 neugomon flash_control.a running
[ 44] MapBalance 1.0 BlackSignature MapBalance.amxx running
[ 45] MapBalance Wizard 0.4 mx?! MapBalance_Wiza running
[ 46] Top Awards 0.11c Safety1st top_awards.amxx debug
[ 47] Admin Gag 1.0 fomeN amx_admingag.am running
[ 48] Auto-ResetScore 1.0 maeStro autorr.amxx running
[ 49] Time for info 1.0 neugomon time_for_info.a running
[ 50] Kills Counter 1.0 Safety1st killscounter.am running
[ 51] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 52] Bomb pickup on use 1.0.1 voed use_bomb_pickup running
[ 53] Combo On Kill 0.2 Vaqtincha combo_on_kill.a running
[ 54] AES: Status Info 0.1 serfreeman1337 aes_status_info running
[ 55] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 56] Center Msg Fix 0.4 mx?! CenterMsgFix.am running
[ 57] [REAPI] Simple anti so 1 Karaulov anti_esp3.amxx running
[ 58] AdminsOnline 1.0 ZETA [M|E|N] AdminsOnline.am running
[ 59] Auto-Give Privileges 1.0 SerGrib nightvip.amxx stopped
[ 60] Lite Auto Restart 1.0 CHEL74 lite_auto_resta running
[ 61] Healthkit on dead body 2.0 tuty kit_on_body.amx running
[ 62] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 63] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 64] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 65] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 66] Map Manager: Core 3.0.5 Mistrick map_manager_cor running
[ 67] Map Manager: Scheduler 0.1.3 Mistrick map_manager_sch running
[ 68] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 69] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 70] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 71] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 72] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 73] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 74] Map Manager: Advanced 0.0.5 Mistrick map_manager_adv running
74 plugins, 73 running
Amxx Модули
Код:
MySQL 1.9.0.5263 AMX Mod X Dev Team running
SQLite 1.9.0.5263 AMX Mod X Dev Team running
Fun 1.9.0.5263 AMX Mod X Dev Team running
Engine 1.9.0.5263 AMX Mod X Dev Team running
FakeMeta 1.9.0.5263 AMX Mod X Dev Team running
GeoIP 1.9.0.5263 AMX Mod X Dev Team running
nVault 1.9.0.5263 AMX Mod X Dev Team running
CStrike 1.9.0.5263 AMX Mod X Dev Team running
CSX 1.9.0.5263 AMX Mod X Dev Team running
Ham Sandwich 1.9.0.5263 AMX Mod X Dev Team running
ReAimDetector 0.2.2 ReHLDS Team running
ReAPI 5.12.0.192 Asmodai & s1lent running
Sockets 1.9.0.5263 AMX Mod X Dev Team running
RegEx 1.9.0.5263 AMX Mod X Dev Team running
Sockets2 1.8.1.3746 HLSW Dev Team running
Всего 15 модулей
Ошибка
Код:
Плагин который позволяет выпадать аптечке после смерти игрока, плагин работает, но через некоторое время игры серв падает с ошибкой Host_Error: WriteDest_Parm: not a client
Плагин который позволяет выпадать аптечке после смерти игрока, плагин работает, но через некоторое время игры серв падает с ошибкой Host_Error: WriteDest_Parm: not a client
 

Вложения

Vaqtincha

aggressive
Разработчик
Регистрация
28 Янв 2018
Сообщения
774
Симпатии
481
Пол
Мужской
Ужасный плагин.
Почему то юзается общий тач
register_forward(FM_Touch,"fw_touch");
когда есть хам.
И почему то автор решил что тачер может только игрок и даже не добавил проверку типа 1 <= id <= maxclients
 

Vaqtincha

aggressive
Разработчик
Регистрация
28 Янв 2018
Сообщения
774
Симпатии
481
Пол
Мужской
bake2, регейм юзается ? (не указано)
 

bake2

Пользователь
Регистрация
3 Окт 2019
Сообщения
137
Симпатии
3
bake2, регейм юзается ? (не указано)
нет.
#include < amxmodx >

#include < fakemeta >
#include < fakemeta_util >

#define PLUGIN_VERSION "3.3"

#define FFADE_IN 0x0000

enum _: iCoords
{
x = 0,
y,
z
};

new const szModelKit[ ] = "models/w_medkit.mdl";
new const szPickupSound[ ] = "items/smallmedkit1.wav";

new gToggleKitEnable;
new gToggleGlowShow;
new gGMsgFade;
new gToggleFadeEnable;
new gToggleRemoveAtRstart;
new gKitHealthCvar;
new gLimitHealthCvar;
new gGMsgItemPickup;

new const gMedKitClassname[ ] = "medkit_entity";

public plugin_init( )
{
register_plugin( "Healthkit on dead body", PLUGIN_VERSION, "tuty" );

register_event( "DeathMsg","Event_DeathMsg","a" );
register_logevent( "LOGEvent_Round_Start", 2, "1=Round_Start" );

register_forward( FM_Touch, "forward_FM_Touch" );

gToggleKitEnable = register_cvar( "kit_enable", "1" );
gToggleGlowShow = register_cvar( "kit_glow", "1" );
gToggleFadeEnable = register_cvar( "kit_fade", "1" );
gToggleRemoveAtRstart = register_cvar( "kit_remove", "0" );
gKitHealthCvar = register_cvar( "kit_health", "20" );
gLimitHealthCvar = register_cvar( "kit_limit_health", "100" );

gGMsgFade = get_user_msgid( "ScreenFade" );
gGMsgItemPickup = get_user_msgid( "ItemPickup" );
}

public plugin_precache( )
{
precache_model( szModelKit );
precache_sound( szPickupSound );
}

public Event_DeathMsg( )
{
if( get_pcvar_num( gToggleKitEnable ) == 0 )
{
return PLUGIN_HANDLED;
}

new iVictim = read_data( 2 );

static Float:flOrigin[ iCoords ];
pev( iVictim, pev_origin, flOrigin );

new iEnt = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );

/* --| Modify the origin a little bit. This is calculated to be set on floor */
flOrigin[ z ] -= 36;

engfunc( EngFunc_SetOrigin, iEnt, flOrigin );

if( !pev_valid( iEnt ) )
{
return PLUGIN_HANDLED;
}

set_pev( iEnt, pev_classname, gMedKitClassname );
engfunc( EngFunc_SetModel, iEnt, szModelKit );
dllfunc( DLLFunc_Spawn, iEnt );
set_pev( iEnt, pev_solid, SOLID_BBOX );
set_pev( iEnt, pev_movetype, MOVETYPE_NONE );
engfunc( EngFunc_SetSize, iEnt, Float:{ -23.160000, -13.660000, -0.050000 }, Float:{ 11.470000, 12.780000, 6.720000 } );
engfunc( EngFunc_DropToFloor, iEnt );

if( get_pcvar_num( gToggleGlowShow ) == 1 )
{
fm_set_rendering( iEnt, kRenderFxGlowShell, 255, 255, 255, kRenderFxNone, 27 );
}

return PLUGIN_HANDLED;
}

public forward_FM_Touch( iEnt, id )
{
if( !pev_valid( iEnt )
|| get_pcvar_num( gToggleKitEnable ) == 0 )
{
return FMRES_IGNORED;
}

new szClassname[ 32 ];
pev( iEnt, pev_classname, szClassname, charsmax( szClassname ) );

if( !equal( szClassname, gMedKitClassname ) )
{
return FMRES_IGNORED;
}

new iUserHealth = get_user_health( id );

new iCvarHealth = get_pcvar_num( gKitHealthCvar );
new iMaxHealth = get_pcvar_num( gLimitHealthCvar );

if( iUserHealth >= iMaxHealth )
{
return FMRES_IGNORED;
}

set_hudmessage( 255, 0, 0, -1.0, 0.83, 2, 6.0, 3.0 );
show_hudmessage( id, "You received %d HP", iCvarHealth );

fm_set_user_health( id, iUserHealth + iCvarHealth );

emit_sound( id, CHAN_ITEM, szPickupSound, VOL_NORM, ATTN_NORM, 0 , PITCH_NORM );
UTIL_Send_PickupMessage( id, "item_healthkit" );

if( get_pcvar_num( gToggleFadeEnable ) == 1 )
{
message_begin( MSG_ONE_UNRELIABLE, gGMsgFade , _, id );
write_short( 1<<10 );
write_short( 1<<10 );
write_short( FFADE_IN );
write_byte( 255 );
write_byte( 0 );
write_byte( 0 );
write_byte( 75 );
message_end( );
}

engfunc( EngFunc_RemoveEntity, iEnt );

return FMRES_IGNORED;
}

public LOGEvent_Round_Start( )
{
if( get_pcvar_num( gToggleRemoveAtRstart ) == 1 )
{
new iEntity = FM_NULLENT;

while( ( iEntity = fm_find_ent_by_class( iEntity, gMedKitClassname ) ) )
{
engfunc( EngFunc_RemoveEntity, iEntity );
}
}
}

stock UTIL_Send_PickupMessage( const id, const szItemName[ ] )
{
message_begin( MSG_ONE_UNRELIABLE, gGMsgItemPickup, _, id );
write_string( szItemName );
message_end( );
}
 

Vaqtincha

aggressive
Разработчик
Регистрация
28 Янв 2018
Сообщения
774
Симпатии
481
Пол
Мужской
bake2, Зря.

Код та же. Ничего не менялось.
 
Сверху Снизу