View Single Post
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-09-2014 , 20:05   Re: First Blood Reward v1.4 (Bot Support)
Reply With Quote #22

Quote:
Originally Posted by Kia View Post
Code:
if(bFirstBlood || victim == attacker || !is_user_connected(attacker))

I would check first if the user is connected / alive before checking if he is also the victim, sounds more logically to me.
Thats actually the way to go. Theres no need to call natives when theres a good chance that the boolean expression will be false because of the other two evaluations anyways.
mottzi is offline
Send a message via MSN to mottzi