i just made a quick round end hud. but i want to replace round draw, hostage resurce with no one wins and remove game comecing
PHP Code:
#include <amxmodx>
#include <amxmisc>
new const VERSION[] = "1.0"
public plugin_init() {
register_plugin("Round End Hud", VERSION, "Shuttle_Wave")
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")
}
public message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{
static message[32]
get_msg_arg_string(2, message, charsmax(message))
if(equal(message, "#Terrorists_Win"))
{
set_hudmessage( 200, 0, 0, -1.0, 0.40, 4, 3.0, 8.0, 0.0, 0.0, 10);
show_hudmessage(0, "Prisoners Win!^nAll Guards were killed in action.")
}
else if(equal(message, "#CTs_Win"))
{
set_hudmessage( 0, 0, 200, -1.0, 0.40, 4, 3.0, 8.0, 0.0, 0.0, 10);
show_hudmessage(0, "Guards Win!^nAll Prisoners were defeated.")
}
else
{
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 0.0, 3.0, 2.0, 1.0, -1);
show_hudmessage(0, "No one won.");
}
}
__________________