RSSy MYGO.pl Opublikowano Kwiecień 14, 2020 o 11:50 RSSy Udostępnij Opublikowano Kwiecień 14, 2020 o 11:50 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 Więcej opcji udostępniania...
Rekomendowane odpowiedzi