Raised This Month: $ Target: $400
 0% 

How will I catch if someone is flashed?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-12-2012 , 16:47   How will I catch if someone is flashed?
#1

Hello there,

Title says all
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-12-2012 , 17:01   Re: How will I catch if someone is flashed?
#2

I've told you before in another thread. Hook ScreenFade message.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-12-2012 , 17:11   Re: How will I catch if someone is flashed?
#3

Yeah, but what to do when i hooked it how to catch the flash.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-12-2012 , 17:27   Re: How will I catch if someone is flashed?
#4

Run this:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("ScreenFade Info", "0.0.1", "Exolent");         register_event("ScreenFade", "EventScreenFade", "b"); } public EventScreenFade(id) {     log_amx("ScreenFade for %d | Duration: %d | HoldTime: %d | Flags: %d | RGB: %d,%d,%d | Alpha: %d",         id, read_data(1), read_data(2), read_data(3), read_data(4), read_data(5), read_data(6), read_data(7)); }

Test different types of flashes and see how all of the values are.
You will know that the color will be white, so RGB will be 255,255,255.
Also, the alpha is always only 2 values: 255 (full flash) and like 200 (partial flash, value may be different).

Once you know those values, you hook ScreenFade message and check if those values are set.
If the values match, then the player got flashed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-12-2012 , 22:35   Re: How will I catch if someone is flashed?
#5

You can use hamsandwich updated module for it and it efficient.
PHP Code:
    /**
     * Description:        Whether or not the player is being flashing. (flashbang grenade explosion)
     *                    blindTime is the time you are considered as being blind. (holdTime * 0.33).
     * Forward params:    function(this, Float:blindTime, Float:duration, Float:holdTime, alpha);
     * Return type:        None.
     * Execute params:    ExecuteHam(Ham_CS_Player_Blind, this, Float:blindTime, Float:duration, Float:holdTime, alpha);
     */
    
Ham_CS_Player_Blind 
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 05-12-2012 at 22:36.
yokomo is offline
Santaaa
BANNED
Join Date: May 2012
Old 05-28-2012 , 14:38   Re: How will I catch if someone is flashed?
#6

Can someone explain this to me more proplely?
Santaaa is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-28-2012 , 15:03   Re: How will I catch if someone is flashed?
#7

*facepalm* all of this was discussed in another thread. BY THE SAME GUY.

a thread discussing this.
http://forums.alliedmods.net/showthr...flashed+player

a plugin that properly utilizes flash functions
http://forums.alliedmods.net/showthr...ighlight=flash

more helpful information
http://forums.alliedmods.net/showthr...flashed+player

YAY search tool!
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Santaaa
BANNED
Join Date: May 2012
Old 05-28-2012 , 15:19   Re: How will I catch if someone is flashed?
#8

I said EXPLAIN..
Santaaa is offline
Closed Thread


Thread Tools
Display Modes

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 00:20.


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