AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if's (https://forums.alliedmods.net/showthread.php?t=190233)

GhostMan 07-16-2012 08:01

if's
 
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?

YamiKaitou 07-16-2012 08:03

Re: if's
 
No, they do not mean the first thing

GhostMan 07-16-2012 08:04

Re: if's
 
YamiKaitou, i edited with post with the specific example. Didnt saw you answered.


All times are GMT -4. The time now is 15:24.

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