You need this?
PHP Code:
#include <amxmodx>
#include <amxmisc>
new a
new b
new c
new d
public plugin_init()
{
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_clcmd("say /fadescreen", "screenfade")
}
public event_round_start()
{
a = random_num(1, 255)
b = random_num(1, 255)
b = random_num(1, 255)
d = random_num(40, 65)
}
public screenfade(id)
{
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short(~0)
write_short(~0)
write_short(1<<12)
write_byte(a)
write_byte(b)
write_byte(c)
write_byte(d)
message_end()
}