/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <csx> #define PLUGIN "Nowy Plugin" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("round_end", 2, "1=Round_End"); } public round_end() { static stats[8], bodyhits[8], players[32], bestscore = 0, bestplayer, besths, num, i get_players(players, num, "h") for(i = 0; i <= num; i++) { get_user_rstats(players[i], stats, bodyhits) if(stats[0] > bestscore) { bestscore = stats[0] bestplayer = players[i] besths = stats[2] } } if(is_user_connected(bestplayer)) { static name[33] get_user_name(bestplayer, name, 32) client_print(0, print_chat, " ~Najlepszym graczem rundy jest %s!", name) client_print(0, print_chat, " ~Zabil %d Graczy", bestscore) client_print(0, print_chat, " ~W tym %d w Glowe", besths) } else { client_print(0, print_chat, " ~Brak najlepszego gracza rundy...") } }
Drugą rzeczą jest dodanie koloru przy client_print ( zielony, czerwony, zielony ) lub kolor teamu.
client_print(0, print_chat, " ~Najlepszym graczem rundy jest %s!", name)
client_print(0, print_chat, " ~Zabil %d Graczy", bestscore)
client_print(0, print_chat, " ~W tym %d w Glowe", besths)
Z tego co wiem zwykłym printem tego nie zrobię tylko przez stocka ale nie mam pojęcia jak to zrobić.