View Single Post
Hennesy
Member
Join Date: Nov 2018
Location: Czech Republic
Old 08-13-2021 , 02:37   Re: Question to sourcepawn guru, how to understand who started shooting first
Reply With Quote #4

Quote:
Originally Posted by little_froy View Post
try these https://sm.alliedmods.net/new-api/sdkhooks/SDKHook
https://sm.alliedmods.net/new-api/sd...oks_TakeDamage
use a var to save players' hurt state, the first injured is the victim, and the attacker is the initiator.

I wrote that I do not understand exactly how to compose the logic with the code. I already know that I need to use OnTakeDamage
__________________
I'm sorry for my english

Last edited by Hennesy; 08-13-2021 at 05:18.
Hennesy is offline