AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Checking if the user is faded (https://forums.alliedmods.net/showthread.php?t=188837)

Santaaa 06-30-2012 21:10

Checking if the user is faded
 
Hello peeps,

How can I check if a user is flashbanged, and how will I stop the screenfade loading when the user is flashed?

hornet 07-01-2012 03:53

Re: Checking if the user is faded
 
Register ScreenFade message event.

Santaaa 07-01-2012 13:29

Re: Checking if the user is faded
 
Can you please give me an example or explain it more propely on how to do it :)?

Liverwiz 07-01-2012 14:11

Re: Checking if the user is faded
 
look in the tuts section. They have it there.

Santaaa 07-02-2012 12:14

Re: Checking if the user is faded
 
Cant find anything about it.

Liverwiz 07-02-2012 12:34

Re: Checking if the user is faded
 
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

Exolent[jNr] 07-02-2012 12:36

Re: Checking if the user is faded
 
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.

Santaaa 07-04-2012 10:14

Re: Checking if the user is faded
 
Damn, i still dont understand anything at all.


All times are GMT -4. The time now is 15:21.

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