#include <amxmodx>
#include <colorchat>
#include <csx>
public plugin_init() {
register_plugin("", "", "byCZEK i mala edycja mastah ^^");
register_logevent("event_RoundEnd", 2, "1=Round_End");
}
public event_RoundEnd() {
new players[32], Staty[8], Body[8], num, id, best[3], ids[2];
get_players(players, num);
for(new i = 0; i < num; i++) {
id = players[i];
get_user_rstats(id, Staty, Body);
// Damage
if(Staty[6] > best[0]) {
best[0] = Staty[6];
ids[0] = id;
}
// Kills i hs
if(Staty[0] > best[1]) {
best[1] = Staty[0];
best[2] = Staty[2];
ids[1] = id;
}
}
new name[2][33];
get_user_name(ids[0], name[0], 32);
get_user_name(ids[1], name[1], 32);
ColorChat(0, TEAM_COLOR, "^x04%s zadal w tej rundzie najwiecej obrazen [^x04%d obrazen]", name[0], best[0]);
ColorChat(0, TEAM_COLOR, "^x04%s zostal najlepszym graczem rundy [^x04%d ^x03fragow w tym ^x04%d hs]", name[1], best[1], best[2]);
}
Użytkownik mastah7991 edytował ten post 05.08.2013 10:24