Raised This Month: $ Target: $400
 0% 

UTIL_Flash() Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-26-2013 , 13:43   UTIL_Flash() Help
Reply With Quote #1

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...
Spy123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2013 , 14:01   Re: UTIL_Flash() Help
Reply With Quote #2

There is a stock in the tutorial section. Please search.
__________________
Arkshine is offline
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-26-2013 , 14:16   Re: UTIL_Flash() Help
Reply With Quote #3

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>..

Last edited by Spy123; 01-26-2013 at 14:20.
Spy123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2013 , 14:22   Re: UTIL_Flash() Help
Reply With Quote #4

Where do you "UTIL_Flash" in the tutorial ?
__________________
Arkshine is offline
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-26-2013 , 14:33   Re: UTIL_Flash() Help
Reply With Quote #5

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)
Spy123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2013 , 14:40   Re: UTIL_Flash() Help
Reply With Quote #6

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

So you need to compile with this .inc.
__________________
Arkshine is offline
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-26-2013 , 14:49   Re: UTIL_Flash() Help
Reply With Quote #7

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..
Spy123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2013 , 15:02   Re: UTIL_Flash() Help
Reply With Quote #8

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.
__________________

Last edited by Arkshine; 01-26-2013 at 15:03.
Arkshine is offline
Spy123
BANNED
Join Date: Jul 2011
Location: Giurgiu / Romania
Old 01-26-2013 , 15:23   Re: UTIL_Flash() Help
Reply With Quote #9

Oh,i understand now Thanks Arkshine

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..

Last edited by Spy123; 01-27-2013 at 10:10.
Spy123 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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