Raised This Month: $ Target: $400
 0% 

if's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-16-2012 , 08:01   if's
Reply With Quote #1

PHP Code:
public hook_TakeDamage(victimattackeruselessFloat:damagedamagebits) {
    
    if(
g_iTimeLeft 0)
    {
        if((
specialday[20] != DAY_HNS) || bits & (1<<24))
        {
            return 
HAM_SUPERCEDE
        
}
        else if(
cs_get_user_team(victim) == CS_TEAM_CT)
        {
            return 
HAM_SUPERCEDE
        
}
    }
    return 
HAM_IGNORED

What would be if specialday[20] == DAY_HNS and grenade will be dropped? So the damage wount be deal or it would, but just for terrorist team?

Last edited by GhostMan; 07-16-2012 at 08:06.
GhostMan is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-16-2012 , 08:03   Re: if's
Reply With Quote #2

No, they do not mean the first thing
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-16-2012 , 08:04   Re: if's
Reply With Quote #3

YamiKaitou, i edited with post with the specific example. Didnt saw you answered.

Last edited by GhostMan; 07-16-2012 at 08:05.
GhostMan is offline
Reply


Thread Tools
Display Modes

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 15:24.


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