AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook flashed event (https://forums.alliedmods.net/showthread.php?t=253107)

IAmReallyCool 12-15-2014 10:29

Hook flashed event
 
Is it possible to hook flashed player event with FLASHER'S (Attacker's) ID and Flashed players ID?

Kia 12-17-2014 05:26

Re: Hook flashed event
 
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.

IAmReallyCool 12-17-2014 07:45

Re: Hook flashed event
 
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..

Kia 12-17-2014 07:49

Re: Hook flashed event
 
Take a look here: https://forums.alliedmods.net/showthread.php?t=233355

HamletEagle 12-17-2014 09:31

Re: Hook flashed event
 
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.


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

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