i have this public:
Code:
public streamfunc(index)
{
new g_r = random(256)
new g_b = random(256)
new g_g = random(256)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(22)
write_short(index)
write_short( spr )
write_byte(200)
write_byte(8)
write_byte(g_r)
write_byte(g_b)
write_byte(g_g)
write_byte(100)
message_end()
}
And also i have an "ResetHUD" event. I want to disable that stream on reset hud . How i can do that ?
I tryed with this:
Code:
public stopstr(index)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(22)
write_short(index)
write_short( 0 )
write_byte(200)
write_byte(8)
write_byte(0)
write_byte(0)
write_byte(0)
write_byte(100)
message_end()
}
But doesent works .
Hope you are understand, thanks