Quote:
Originally Posted by Zenith77
If you run this on other mods, like HL, that have monsters or other stuff in them, the entity index can be anywhere between the number of max players on a server and 500 (default), causing an out of bounds error.
You can essentially filter the monsters out with a simple check like:
Code:
if (!is_user_alive(id))
// It's a monster!
|
Im running it in TFC but im using is_user_alive(id) before i check if the player is noclipping. I also tested on myself and as you can see it returns an id number of 298 as Attacker and 1 as Victim. I want it to be 1 and 1.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.