*** Najlepszym graczem rundy jest B#V#G PtasioPL! ***
*** Zabil 4 graczy, w tym 2 headshot'ow ** potzrebuje nazwe tego pluginu
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
NAZWA PLUGA
Temat rozp. HaMa, 06.03.2010 22:15
1 odpowiedź w tym temacie
#1
Napisano 06.03.2010 22:15
#2
Napisano 06.03.2010 22:43
#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, w tym %d headshot'ow ", bestscore, besths) } else { client_print(0, print_chat, "~ Brak najlepszego gracza rundy... ") } }
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych