Raised This Month: $ Target: $400
 0% 

Hook flashed event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IAmReallyCool
Member
Join Date: Nov 2013
Old 12-15-2014 , 10:29   Hook flashed event
Reply With Quote #1

Is it possible to hook flashed player event with FLASHER'S (Attacker's) ID and Flashed players ID?
IAmReallyCool is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-17-2014 , 05:26   Re: Hook flashed event
Reply With Quote #2

Code:
register_event("ScreenFade", "Event_Flashed", "be", "4=255", "5=255", "6=255", "7>199") public Event_Flashed(id) {    // do stuff with flashed person }

Not sure how to get the person who flashed you, but I think there are some plugins out there which get the attacker.
__________________
Kia is offline
IAmReallyCool
Member
Join Date: Nov 2013
Old 12-17-2014 , 07:45   Re: Hook flashed event
Reply With Quote #3

Thanks! Tho I didnt find how to get flashers (attackers) id, didnt find such a plugin tha does this. I really need to get attackers id to check whether the attacker has particular skill or not..
IAmReallyCool is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-17-2014 , 07:49   Re: Hook flashed event
Reply With Quote #4

Take a look here: https://forums.alliedmods.net/showthread.php?t=233355
__________________

Last edited by Kia; 12-17-2014 at 07:50.
Kia is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-17-2014 , 09:31   Re: Hook flashed event
Reply With Quote #5

You can get the attacker by retrieving the grenade owner if I'm right. You may also need to check before pev_dmgtime to make sure the grenade is going to explode.
__________________
HamletEagle is offline
Reply


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 15:18.


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