|
Author
|
Message
|
|
Veteran Member
Join Date: Oct 2004
Location: abort73.com
|

11-05-2005
, 14:30
|
#1
|
About your code, Hawk. Firstly, if a server's max slots is 8, then a non-player entity could have an index of 9, so the > 32 check is useless. Secondly, is_user_alive already checks if the player is connected, so you can just remove the < 1 and > 32 checks entirely and leave is_user_alive in there. Thirdly, why do you check to see if the other entity's index is > 1 and then use is_valid_ent? Scrap the > 1 check and just use is_valid_ent, it won't explode of the entity is 0.
|
|
|
|