AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   UTIL_Flash() Help (https://forums.alliedmods.net/showthread.php?t=206844)

Spy123 01-26-2013 13:43

UTIL_Flash() Help
 
I want the screen to flash,like black-normal-black-normal for 5 seconds,and i know it possible to UTIL_FLash...can someone tell me the code? cause i don't understand how to wrote...

Arkshine 01-26-2013 14:01

Re: UTIL_Flash() Help
 
There is a stock in the tutorial section. Please search.

Spy123 01-26-2013 14:16

Re: UTIL_Flash() Help
 
Yeah,i found this: http://forums.alliedmods.net/showthread.php?p=1674643

And I wrote this in .sma "UTIL_Flash(id, Float:0.7, Float:5, bool:bFullFlashed)"

I get 2 errors: "undefined symbol UTIL_FLash" and "undefined symbol bFullFlashed".

What I must wrote at "bool:bFullFlashed" ? Cause i don't understand..(i know bFullFlashed is on example).And why i get "undefined symbol" at UTIL_Flash? cause i have wrote # include <screenfade_util> and # include <screenfade_util_rage>..

Arkshine 01-26-2013 14:22

Re: UTIL_Flash() Help
 
Where do you "UTIL_Flash" in the tutorial ?

Spy123 01-26-2013 14:33

Re: UTIL_Flash() Help
 
Here:
Quote:

// Main util
UTIL_ScreenFade(id, Float:color[3]={0.0,0.0,0.0},Float:fadeTime=0.0,Float:fadeH old=0.0,alpha=0,flags=FFADE_IN)


// Utils from main util

UTIL_FadeToBlack(id,Float:fadeTime=3.0)


UTIL_Flash(id, Float:fadeTime, Float:holdTime, bool:bFullFlashed)

Arkshine 01-26-2013 14:40

Re: UTIL_Flash() Help
 
You're talking about the rage version http://forums.alliedmods.net/showpos...3&postcount=24

So you need to compile with this .inc.

Spy123 01-26-2013 14:49

Re: UTIL_Flash() Help
 
Yeah, i know this.I put the "screenfade_util_rage.inc" in amxmodx/scripting/include...the "SIGS_screenfade_util" in addons/rage and "HANDLERS_screenfade_util_BIN" also in addons/rage..but where i put "HANDLERS_screenfade_util_SRC" cause i don't understand..

Arkshine 01-26-2013 15:02

Re: UTIL_Flash() Help
 
You need to install Rage first, if not done already. If not, check module section and the sticky.
Then, you download and unzip HANDLERS_screenfade_util_BIN.zip ; and upload the content in your mod directory (example czero/, cstrike/) on your server.

Spy123 01-26-2013 15:23

Re: UTIL_Flash() Help
 
Oh,i understand now:D Thanks Arkshine :D

EDIT!!: What i must put here:
Quote:

UTIL_ScreenShake( const Float:center[3], const Float:amplitude, const Float:frequency, const Float:duration, const Float:radius )
Please give me an example...

I understand only:
Quote:

UTIL_ScreenShake( const Float:center[3], const Float:amplitude, const Float:frequency, const Float:5, const Float:0 )
This is for UTIL_ScreenShake ()

EDIT 2!! I did what you said,but I still get 1 error: "undefined symbol UTIL_Flash" :| The rage module works fine (meta list in console) also i put the HANDLERS_screenfade_util_BIZ.zip at his place...SIGS_screenfade also..

Update: ScreenShake Done! UTIL_Flash remains..


All times are GMT -4. The time now is 20:30.

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