rundy:
Najlepszym graczem rundy jest xxx
Zabil xx graczy w tym xx headshoto'w
ogólnie:
Obiecnie prowadzi xxx
Z xx zabiciami i xxx dedami
Nie chcę spree.amxx
Dodam, że ten plugin pokazuje przez cała mapę kto był najlepszy w pierwszej rundzie:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <csx> #include <colorchat> #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) ColorChat(0, RED, "^x03~ Najlepszym graczem rundy jest %s! ", name) ColorChat(0, RED, "^x03~ Zabil %d graczy, w tym %d headshot'ow ", bestscore, besths) } else { ColorChat(0, RED, "^x03~ Brak najlepszego gracza rundy... ") } }