Из-за чего может быть такая ошибка?
[pawn]FATAL ERROR (shutting down): Host_Error: WriteDest_Parm: not a client[/pawn]
[pawn]My plugins[/pawn]
[pawn]gamemenu.amxx
Fire_in_the_hole_blocker.amxx
auto_join.amxx
high_ping_kicker.amxx
Map_Spawns_Editor.amxx
custom_lang_menu.amxx
walkguard.amxx
updatehint.amxx
anti_floodup.amxx
hide_cvars.amxx
vampire.amxx
hudTextArgsBlock.amxx
buyzonerange.amxx
afkkicker.amxx
nademodes.amxx[/pawn]
Добавлено спустя 3 минуты 33 секунды:
Есть подозрения на плагин :
Может быть,что здесь,что-то не так? Или тут все идеально?
[pawn]
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "HudTextArgs Blocker"
#define AUTHOR "joaquimandrade"
#define VERSION "1.1"
const NextHudTextArgsOffset = 198 // ConnorMcLeod
const HintMaxLen = 38
new Hints[][HintMaxLen] =
{
"hint_win_round_by_killing_enemy",
"hint_press_buy_to_purchase",
"hint_spotted_an_enemy",
"hint_use_nightvision",
"hint_lost_money",
"hint_removed_for_next_hostage_killed",
"hint_careful_around_hostages",
"hint_careful_around_teammates",
"hint_reward_for_killing_vip",
"hint_win_round_by_killing_enemy",
"hint_try_not_to_injure_teammates",
"hint_you_are_in_targetzone",
"hint_hostage_rescue_zone",
"hint_terrorist_escape_zone",
"hint_ct_vip_zone",
"hint_terrorist_vip_zone",
"hint_cannot_play_because_tk",
"hint_use_hostage_to_stop_him",
"hint_lead_hostage_to_rescue_point",
"hint_you_have_the_bomb",
"hint_you_are_the_vip",
"hint_out_of_ammo",
"hint_spotted_a_friend",
"hint_spotted_an_enemy",
"hint_prevent_hostage_rescue",
"hint_rescue_the_hostages",
"hint_press_use_so_hostage_will_follow"
}
new HintsDefaultStatus[sizeof Hints] =
{
1,1,1,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0
}
new Trie:HintsStatus
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("HudTextArgs"),"hudTextArgs")
}
public plugin_cfg()
{
HintsStatus = TrieCreate()
for(new i=0, statusString[2]; i<sizeof Hints; i++)
{
statusString[0] = HintsDefaultStatus[i] + 48
if(get_pcvar_num(register_cvar(Hints[i],statusString)))
TrieSetCell(HintsStatus,Hints[i][5],true)
}
}
public hudTextArgs(msgid, msgDest, msgEnt)
{
static hint[HintMaxLen + 1]
get_msg_arg_string(1,hint,charsmax(hint))
if(TrieKeyExists(HintsStatus,hint[6]))
{
set_pdata_float(msgEnt,NextHudTextArgsOffset,0.0)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
} [/pawn]
Добавлено спустя 34 секунды:
И этот..
[pawn]#include <amxmodx>
enum _:CvarBits (<<=1) {
BLOCK_RADIO = 1,
BLOCK_MSG
};
new g_pCvar;
public plugin_init( ) {
register_plugin( "'Fire in the hole' blocker", "1.0", "xPaw" );
g_pCvar = register_cvar( "sv_fith_block", "3" );
register_message( get_user_msgid( "TextMsg" ), "MessageTextMsg" );
register_message( get_user_msgid( "SendAudio" ), "MessageSendAudio" );
}
public MessageTextMsg( )
return ( get_msg_args( ) == 5 && IsBlocked( BLOCK_MSG ) ) ? GetReturnValue( 5, "#Fire_in_the_hole" ) : PLUGIN_CONTINUE;
public MessageSendAudio( )
return IsBlocked( BLOCK_RADIO ) ? GetReturnValue( 2, "%!MRAD_FIREINHOLE" ) : PLUGIN_CONTINUE;
GetReturnValue( const iParam, const szString[ ] ) {
new szTemp[ 18 ];
get_msg_arg_string( iParam, szTemp, 17 );
return ( equal( szTemp, szString ) ) ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
}
bool:IsBlocked( const iType )
return bool:( get_pcvar_num( g_pCvar ) & iType ); [/pawn]