Raised This Month: $ Target: $400
 0% 

[ES][ZP] Happy Hour Sacando DUDAS!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 12-09-2010 , 12:01   [ES][ZP] Happy Hour Sacando DUDAS!!!
#1

Hola bueno la duda que tengo es de que manera es mejor hacer happy hour dentro del zp 4.2

esta:
PHP Code:
// Reward ammo packs for every [ammo damage] dealt
            
while (g_damagedealt[attacker] >= (ammodamage / (g_happytime 1)) )
                {
                    
g_ammopacks[attacker] += (is_user_admin(attacker) ? 1)
                    
g_damagedealt[attacker] -=  (ammodamage / (g_happytime 1))
                }
        }
        
        return 
HAM_IGNORED;
    }


// Happy Hour
public happyhour()
{
    new 
data[12]
    
get_time("%H"data12)
    new 
Tiempo str_to_num(data)
 
    for(new 
i=0;<= sizeof horas 1;i++)
    {
        if(
Tiempo != horas[i]) continue
        
g_happytime true
        
break;
    }
    if(
g_happytime)
    {
        
zp_colored_print(0"^x04[ZP]^x01 -^x03 Happy Hour:^x01 Ya Comenzo...")
    }

o esta otra:
PHP Code:
// Reward ammo packs for every [ammo damage] dealt
            
while (g_damagedealt[attacker] >= ammodamage)
            {
                if(!
g_happytime)
                {
                    
g_ammopacks[attacker] += 2
                    g_damagedealt
[attacker] -= ammodamage
                
}
                else
                {
                    
g_ammopacks[attacker]++
                    
g_damagedealt[attacker] -= ammodamage
                
}
            }
            if(
g_happytime)
            {
                if(
is_user_admin(attacker))
                {
                    
g_ammopacks[attacker] += 4
                    g_damagedealt
[attacker] -= ammodamage
                
}
                else
                {
                    
g_ammopacks[attacker] += 2
                    g_damagedealt
[attacker] -= ammodamage
                
}
            }
        }
        
        return 
HAM_IGNORED;
    }


// Happy Hour
public happyhour(id)
{
    new 
data[12]
    
get_time("%H"data12)
    new 
Tiempo str_to_num(data)
 
    for(new 
i=0;<= sizeof horas 1;i++)
    {
        if(
Tiempo != horas[i]) continue
        
g_happytime true
        
break;
    }
    if(
g_happytime)
    {
        
zp_colored_print(0"^x04[ZP]^x01 -^x03 Happy Hour:^x01 Ya Comenzo...")
    }

SkiGz is offline
Send a message via MSN to SkiGz
 



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 22:41.


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