RSSy MYGO.pl Opublikowano Styczeń 27, 2021 o 19:57 RSSy Udostępnij Opublikowano Styczeń 27, 2021 o 19:57 hello guys, i have this plugin: PHP Code: #include <amxmodx>#pragma tabsize 0new my_data_2_store[3]new Restarted = 0public plugin_init(){ register_event ( "SendAudio", "t_win", "a", "2&%!MRAD_terwin" ); register_event ( "SendAudio", "ct_win", "a", "2&%!MRAD_ctwin" ); register_event("HLTV", "event_new_round", "a", "1=0", "2=0") register_event("TextMsg", "eRestart", "a", "2&#Game_C") set_task(1.0,"CheckPlayers",.flags="b")}public eRestart(){ if(Restarted == 2) return PLUGIN_HANDLED arrayset(my_data_2_store,0,charsmax(my_data_2_store)) ++Restarted }public event_new_round() my_data_2_store[0]++public t_win ( ) my_data_2_store [ 1 ] ++;public ct_win ( ) my_data_2_store [ 2 ] ++;public CheckPlayers ( ) { set_dhudmessage ( 51, 102, 153, -1.0, 0.06, 1, 6.0, 3.0 ); show_dhudmessage ( 0, "Round: %s%d", my_data_2_store[0]>9?"":"0",my_data_2_store[0] ); set_dhudmessage ( 156, 255, 0, -1.0, 0.09, 1, 6.0, 3.0 ); show_dhudmessage ( 0, "T: %s%d - CT: %s%d", my_data_2_store[1] > 9 ? "" : "0", my_data_2_store [ 1 ], my_data_2_store[2] > 9 ? "" : "0", my_data_2_store[2] );} the problem is that my server have a csgo competitive mode and after 15 rounds, the swap team plugin use sv_restart 1 to restart game and the plugin restart too. can you help me to avoid that plugin restart after sv_restart of swap team plugin ? i tried something but don't work Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi