Fire in the hole yazısını kapatma
Gönderilme zamanı: Çrş Nis 21, 2021 5:16 am
Merhabalar, ben fire in the hole yazısını kapatmak ama sesinin açık kalmasını istiyorum buna göre bir plugin var mıdır acaba?
Hocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648
FearLess yazdı: Çrş Nis 21, 2021 9:43 amHocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648
Kod: Tümünü seç
#include <amxmodx>
enum _:CvarBits (<<=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" );
}
public MessageTextMsg( )
return ( get_msg_args( ) == 5 && IsBlocked( BLOCK_MSG ) ) ? GetReturnValue( 5, "#Fire_in_the_hole" ) : 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 );
Olmadı yazı hala yazmakta.cbmarksman yazdı: Çrş Nis 21, 2021 9:48 amFearLess yazdı: Çrş Nis 21, 2021 9:43 amHocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648bu şekilde deneyinKod: Tümünü seç
#include <amxmodx> enum _:CvarBits (<<=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" ); } public MessageTextMsg( ) return ( get_msg_args( ) == 5 && IsBlocked( BLOCK_MSG ) ) ? GetReturnValue( 5, "#Fire_in_the_hole" ) : 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 );
Kod: Tümünü seç
#include <amxmodx>
enum _:CvarBits (<<=1) {
BLOCK_MSG = 1
};
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" );
}
public MessageTextMsg( )
return ( get_msg_args( ) == 5 && IsBlocked( BLOCK_MSG ) ) ? GetReturnValue( 5, "#Fire_in_the_hole" ) : 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 );