Quote:
Originally Posted by RateX
@Bugsy: I was just talking about Hamlet's method of checking. Since the author's already check !is_user_connected, a connected player won't be out of 1 to maxplayers range.
Yep, that's what I was referring to.
Anyway, welcome back! 
|
Thanks!
His ultimate issue is using AND's instead of OR's in his statement, is_user_connected is also a redundancy.
His if-statement could return true if a player tossed a grenade to hurt himself then immediately disconnected.
PHP Code:
if(!is_user_connected(idattacker) && !is_user_alive(idattacker) && this == idattacker)
IF ( ( ATTACKER NOT CONNECTED ) AND ( ATTACKER NOT ALIVE ) AND ( VICTIM=ATTACKER ) )
__________________