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

CS 1.6 Lost Team Plugin Customization


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hi AlliedModders Family,

Hope you are fine. I have a plugin that gives 3000 dollars money to the team that lost 3 rounds in a row. But this plugin needs some modification. Whenever I use the sv_restartround 1 command on the server or change the map, the plugin continues to count rounds from where it left off. My request is to re-edit this plugin and reset the count when the map is changed or when the sv_restartround 1 command is used.

Translations: ct kazandi=ct win, t kazandi=t win


Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "3ellostpara"
#define VERSION "1.0"
#define AUTHOR "tahademirbaas"
new tkazandi = 0
new ctkazandi = 0

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        register_event( "SendAudio", "ct_win", "a", "2&%!MRAD_ctwin" );       
        register_event( "SendAudio", "t_win", "a", "2&%!MRAD_terwin" );
}

public t_win(){
        tkazandi++
        if(tkazandi == 4){
        tkazandi = 0       
        new players[32], playerCount, player
        get_players(players, playerCount)

        for(new i=0; i<playerCount; i++)
        {
                player = players       
                if(get_user_team(player) == 2){
                        cs_set_user_money(player,cs_get_user_money(player) + 3000)       
                       
                }
        }
        client_print_color(0,0,"^3[PRS GAMING]^4 T Takimi 3 El Kazandigi Icin CT Takimina ^3 3000 $^4 Moral Odulu Veriliyor")
        }
        return PLUGIN_HANDLED
       
       
}

public ct_win(){
       
        ctkazandi++
        if(ctkazandi == 4){
        ctkazandi = 0       
        new players[32], playerCount, player
        get_players(players, playerCount)

        for(new i=0; i<playerCount; i++)
        {
                player = players       
                if(get_user_team(player) == 1){
                        cs_set_user_money(player,cs_get_user_money(player) + 3000)       
                       
                }
        }
        client_print_color(0,0,"^3[PRS GAMING]^4 CT Takimi 3 El Kazandigi Icin T Takimina ^3 3000 $^4 Moral Odulu Veriliyor")
        }
        return PLUGIN_HANDLED
       
       
}

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

×
×
  • Dodaj nową pozycję...