Following stock is from some code Arkshine has posted on forum, revert it to understand the sent message.
PHP Code:
Util_Fog(id, red=127, green=127, blue=127, Float:dentity=0.001, bool:clear=false)
{
static msgFog = 0;
if( !msgFog )
{
msgFog = get_user_msgid("Fog");
}
message_begin(id ? MSG_ONE : MSG_ALL, msgFog, _, id);
write_byte(red);
write_byte(green);
write_byte(blue);
write_long(_:floatclamp(dentity, 0.0001, 0.25 ) * _:!clear;);
message_end();
}
__________________