Raised This Month: $ Target: $400
 0% 

Checking if the user is faded


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 06-30-2012 , 21:10   Checking if the user is faded
Reply With Quote #1

Hello peeps,

How can I check if a user is flashbanged, and how will I stop the screenfade loading when the user is flashed?
Santaaa is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-01-2012 , 03:53   Re: Checking if the user is faded
Reply With Quote #2

Register ScreenFade message event.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 07-01-2012 at 04:02.
hornet is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-01-2012 , 13:29   Re: Checking if the user is faded
Reply With Quote #3

Can you please give me an example or explain it more propely on how to do it ?
Santaaa is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-01-2012 , 14:11   Re: Checking if the user is faded
Reply With Quote #4

look in the tuts section. They have it there.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-02-2012 , 12:14   Re: Checking if the user is faded
Reply With Quote #5

Cant find anything about it.
Santaaa is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-02-2012 , 12:34   Re: Checking if the user is faded
Reply With Quote #6

I guess no one got around to writing the code snippet for that.....But there is a bunch of threads on it in this forum.

http://forums.alliedmods.net/search....archid=9091166
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-02-2012 , 12:36   Re: Checking if the user is faded
Reply With Quote #7

Code:
stock bool:is_user_flashed(id) {     static const m_flFlashedUntil = 514;     return ( get_pdata_float( id, m_flFlashedUntil, 5 ) > get_gametime( ) ); }

Note: This won't work if other plugins/modules interfere with the ScreenFade event and send their own to turn off flashbangs or anything to interrupt a flashbang flash.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-04-2012 , 10:14   Re: Checking if the user is faded
Reply With Quote #8

Damn, i still dont understand anything at all.
Santaaa 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 15:21.


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