Poszukuje pluginu który pod koniec każdej rundy będzie pokazywał w say coś takiego:
Gracz (nick) uzyskał najlepszy wynik (liczba fragów).
Chodzi mi dokładnie o takie coś jak jest w pluginie WarmUP Pro 2.6. Tam po zakończeniu rundy rozgrzewkowej jest takie coś pokazane. Chciałem sam wyciągnąć jakoś ten kod ale nie potrafię. Oto fragment który odpowiada za te wiadomości:
/*================================================================================================*/ /************************************** [Winner Info] *********************************************/ /*=============================================================================R=E=Y=M=O=N==A=R=G=*/ public darresultado() { new resultadofinal = 0 new name[32] new mensajes[256] new bool:g_muchos mensajes[0] = 0; name[0] = 0; g_muchos = false; resultadofinal = 0 for(new i = 1; i <= 32 ; i++) { if( g_ganadores[i] == resultadofinal ) { g_muchos = true; get_user_name(i, name, 31) formatex(mensajes, 255, "%s, %s", mensajes, name) } if( g_ganadores[i] > resultadofinal ) { name[0] = 0; mensajes[0] = 0; g_muchos = false; resultadofinal = g_ganadores[i] get_user_name(i, name, 31) formatex(mensajes, 255, "%s", name) } } if( resultadofinal >= 1 ) { if( !g_muchos ) { ColorChat(0, GREEN, "^x04[WUP] The winner is:^x03 %s^x04 with^x03 %d^x04 Flags", name, resultadofinal) if( get_pcvar_num(logtofilecvar) == 1 ) log_to_file(LOGFILE, "The Winner of WarmUP was: %s with %d Flags", name, resultadofinal) } else if( g_muchos ) { ColorChat(0, GREEN, "^x04[WUP] ^x03%s ^x04 Win the WarmUP Rounds with^x03 %d^x04 Flags", mensajes, resultadofinal) if( get_pcvar_num(logtofilecvar) == 1 ) log_to_file(LOGFILE, "%s Win the WarmUP Rounds with %d Flags", mensajes, resultadofinal) } } if( resultadofinal == 0 ) { ColorChat(0, GREEN, "[WUP] NoBody won the WarmUP Round") if( get_pcvar_num(logtofilecvar) == 1 ) log_to_file(LOGFILE, "NoBody won the WarmUP Round") } batata() } public batata() { for(new i = 0; i <= 32 ; i++) { g_ganadores[i] = 0; } }
Bardzo proszę o pomoc
Pozdrawiam