Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSSRound Bonus Removers v1.0


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Round Bonus Removers
v1.0


For Counter-Strike 1.6 and Condition-Zero.

Credits


Ark_Procession - checking and reporting bugs
ConnorMcLeod - some strategies of the "No RoundEnd Money Bonus" plugin
Bugsy - get players
SonicSonedit - round count


Description


These plugins are alternatives to ConnorMcLeod's No RoundEnd Money Bonus and Exolent's No Round Win Money plugins.

The difference here is that bots are also affected and you can choose by team.


Commands


rbr_enabled - activate the plugin. Default Value: 1 (On)

rbr_t - allows terrorists to be affected. Default Value: 1 (On)
rbr_ct - allows counter-terrorists to be affected. Default Value: 1 (On)


Note: this plugin should not be used in conjunction with the Money Manager plugin as it uses this system as a base. We recommend that you use Money Manager if you want more money-related commands.


TESTED USING AMX MOD X V1.8.2


Codes

METHOD 1 - ULTRA FAST HUD


PHP Code:

/*
==============================================================================================
C:\
=    Round Bonus Remover - AMX Mod X script. Copyright © 2020, WATCH_DOGS UNITED
=
=    Credits:
=    Ark_Procession  - checking and reporting bugs
=    ConnorMcLeod  - some strategies of the "No RoundEnd Money Bonus" plugin
=    Bugsy             - get players
=    SonicSonedit    - round count
=
==============================================================================================
*/
    #include <amxmisc>
    #include <cstrike>

    
new round_count g_pcvar_rbr_enabled g_pcvar_rbr_t g_pcvar_rbr_ct iPlayers32 ] , iNum iPlayer money[33];

public 
plugin_init()
{
    
register_plugin"Round Bonus Remover" "1.0" "WATCH_DOGS UNITED" );
    
register_event("HLTV""get_last_round_money""a""1=0""2=0")
    
register_event("ResetHUD""give_last_round_money""b")
    
register_event"TextMsg" "restartRound" "a" "2&#Game_C" "2&#Game_w" );
    
g_pcvar_rbr_enabled register_cvar"rbr_enabled" "1" );
    
g_pcvar_rbr_t register_cvar"rbr_t" "1" );
    
g_pcvar_rbr_ct register_cvar"rbr_ct" "1" );
}

public 
restartRound()
{
    
round_count 0
}

public 
get_last_round_money()
{
    
round_count++     
    
get_playersiPlayers iNum "h" );
     
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];
        
        
money[iPlayer] = cs_get_user_money(iPlayer);
    }
}

public 
give_last_round_money()
{
    if ( !
get_pcvar_numg_pcvar_rbr_enabled ) )
        return;

    if( 
round_count >= )
    {     
    
get_playersiPlayers iNum "h" );
     
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];

        if ( 
get_pcvar_numg_pcvar_rbr_t ) && get_user_team(iPlayer) == )
        {
        
cs_set_user_moneyiPlayer money[iPlayer] );
        }

        if ( 
get_pcvar_numg_pcvar_rbr_ct ) && get_user_team(iPlayer) == )
        {
        
cs_set_user_moneyiPlayer money[iPlayer] );
        }
    }
    }




METHOD 2 - FAST HUD


PHP Code:

/*
==============================================================================================
C:\
=    Round Bonus Remover - AMX Mod X script. Copyright © 2020, WATCH_DOGS UNITED
=
=    Credits:
=    Ark_Procession  - checking and reporting bugs
=    ConnorMcLeod  - some strategies of the "No RoundEnd Money Bonus" plugin
=    Bugsy             - get players
=    SonicSonedit    - round count
=
==============================================================================================
*/
    #include <amxmisc>
    #include <cstrike>

    
new round_count g_pcvar_rbr_enabled g_pcvar_rbr_t g_pcvar_rbr_ct iPlayers32 ] , iNum iPlayer money[33];

public 
plugin_init()
{
    
register_plugin"Round Bonus Remover" "1.0" "WATCH_DOGS UNITED" );
    
register_event("HLTV""get_last_round_money""a""1=0""2=0");
    
register_event"TextMsg" "restartRound" "a" "2&#Game_C" "2&#Game_w" );
    
g_pcvar_rbr_enabled register_cvar"rbr_enabled" "1" );
    
g_pcvar_rbr_t register_cvar"rbr_t" "1" );
    
g_pcvar_rbr_ct register_cvar"rbr_ct" "1" );
}

public 
restartRound()
{
    
round_count 0
}

public 
get_last_round_money()
{
    
round_count++
    
get_playersiPlayers iNum "h" );
     
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];
        
        
money[iPlayer] = cs_get_user_money(iPlayer);
        
set_task0.0 "give_last_round_money" );
    }
}

public 
give_last_round_money()
{
    if ( !
get_pcvar_numg_pcvar_rbr_enabled ) )
        return;

    if( 
round_count >= )
    {
    
get_playersiPlayers iNum "h" );
     
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];

        if ( 
get_pcvar_numg_pcvar_rbr_t ) && get_user_team(iPlayer) == )
        {
        
cs_set_user_moneyiPlayer money[iPlayer] );
        }

        if ( 
get_pcvar_numg_pcvar_rbr_ct ) && get_user_team(iPlayer) == )
        {
        
cs_set_user_moneyiPlayer money[iPlayer] );
        }
    }
    }



Attached Files
File Type: zip round_bonus_remover.zip (2.1 KB)

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...