Raised This Month: $ Target: $400
 0% 

[ SOLVED ] Difference between the codes?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-11-2015 , 18:15   Re: [ HELP ] Difference between the codes?
Reply With Quote #3

The main difference is at below part:
Code:
if(is_user_alive(attacker) && g_has_weapon[attacker] && get_user_weapon(attacker) == CSW_WPN)
Code:
if(!is_user_alive(attacker) || !g_has_weapon[attacker] || get_user_weapon(attacker) != CSW_WPN)
The first code will make sure the attacker to fullfill all of checks to continue to next event while the second code will allow attacker to pass if he fulfill one of the checks.
zmd94 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode