|
Author
|
Message
|
|
Senior Member
Join Date: Dec 2014
Location: Iraq
|

10-09-2015
, 15:53
Re: [Request] edit fog
|
#1
|
Quote:
Originally Posted by Andu.
Is better to use this stock
PHP Code:
stock CreateFog ( const index = 0, const red = 127, const green = 127, const blue = 127, const Float:density_f = 0.001, bool:clear = false ) { static msgFog; if ( msgFog || ( msgFog = get_user_msgid( "Fog" ) ) ) { new density = _:floatclamp( density_f, 0.0001, 0.25 ) * _:!clear; message_begin( index ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgFog, .player = index ); write_byte( clamp( red , 0, 255 ) ); write_byte( clamp( green, 0, 255 ) ); write_byte( clamp( blue , 0, 255 ) ); write_long( _:density ); message_end(); } }
|
done! thx bro
for more information about use this stock
https://forums.alliedmods.net/showpo...0&postcount=13
Last edited by arvEL.; 10-09-2015 at 16:08.
|
|
|
|