AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] - Flash on 15 sec on HnS (https://forums.alliedmods.net/showthread.php?t=60362)

LlamaPhobic 09-01-2007 22:47

[HELP] - Flash on 15 sec on HnS
 
Ive Seen in some Hide N Seek Server the flash in the 15 seconds it flashes diffrent colors I was wondering can someone help me out with that code.
PHP Code:

stock doFlash(idamt) {
message_begin(MSG_ONE,gmsgScreenFade,{0,0,0},id)
write_short1<<amt // fade lasts this long duration
write_short1<<amt // fade lasts this long hold time
write_short1<<12 // fade type (in / out)
write_byte// fade red
write_byte// fade green
write_byte// fade blue
write_byte255 // fade alpha
message_end() 


LlamaPhobic 09-01-2007 23:05

Re: [HELP] - Flash on 15 sec on HnS
 
Help me please soon.

Alka 09-02-2007 04:22

Re: [HELP] - Flash on 15 sec on HnS
 
:roll: the problem was discussed already! But anyway here

Code:

write_byte( 0 ) // fade red
write_byte( 0 ) // fade green
write_byte( 0 ) // fade blue

replace with this
Code:

write_byte( random(256) ) // fade red
write_byte( random(256) ) // fade green
write_byte( random(256) ) // fade blue

and btw don't bump!

LlamaPhobic 09-02-2007 23:17

Re: [HELP] - Flash on 15 sec on HnS
 
Oh k, sorry.


Thank you very much. +Karma


All times are GMT -4. The time now is 16:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.