PHP Code:
#include <amxmodx>
#include <cstrike>
#define VERSION "1.0"
public plugin_init() {
register_plugin("ShowHudMessage", VERSION, "NapoleoN#")
register_logevent("RoundEndEvent", 2, "1=Round_End")
}
public RoundEndEvent(id) {
if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {
set_hudmessage(random(255), random(255), random(255), -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, 4)
show_hudmessage(0, "Counter-Terrorists Won!")
}
else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) {
set_hudmessage(random(255), random(255), random(255), -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, 4)
show_hudmessage(0, "Terrorists Won!")
}
}
Untested: Tell me if bugs are found.
__________________