1. sayfa (Toplam 1 sayfa)

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 5:16 am
gönderen FearLess
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?

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 9:09 am
gönderen bestcore
İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 9:43 am
gönderen FearLess
bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648
Hocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 9:48 am
gönderen cbmarksman
FearLess yazdı: Çrş Nis 21, 2021 9:43 am
bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648
Hocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.

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 );
bu şekilde deneyin

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 7:24 pm
gönderen FearLess
cbmarksman yazdı: Çrş Nis 21, 2021 9:48 am
FearLess yazdı: Çrş Nis 21, 2021 9:43 am
bestcore yazdı: Çrş Nis 21, 2021 9:09 am İşine yararsa kullanabilirsin, teldeyim inceleyemedim.
viewtopic.php?p=254648#p254648
Hocam bu hem yazıyı hem sesini kapatıyor. Ben sadece yazıyı kapatanı istiyorum.

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 );
bu şekilde deneyin
Olmadı yazı hala yazmakta.

Fire in the hole yazısını kapatma

Gönderilme zamanı: Çrş Nis 21, 2021 7:58 pm
gönderen bestcore
Böyle deneyebilir misin ?

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 );