Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
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
!Morte
Veteran Member
Join Date: May 2010
Old 12-09-2010 , 12:13   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#2

La primera porque esta mas optimizada.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 12-09-2010 , 12:17   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#3

Quote:
Originally Posted by !Morte View Post
La primera porque esta mas optimizada.
buenoo una pregunta como hago para que el admin VIP gane más que el admin común?
SkiGz is offline
Send a message via MSN to SkiGz
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 12-09-2010 , 12:19   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#4

if + checkeas si los flags
__________________
Massive Infection:: Piu-Games
Desktop is offline
!Morte
Veteran Member
Join Date: May 2010
Old 12-09-2010 , 12:24   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#5

get_user_flags
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 12-09-2010 , 12:27   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#6

Quote:
Originally Posted by Desktop View Post
if + checkeas si los flags

explicame mejor !! si los flags ??
SkiGz is offline
Send a message via MSN to SkiGz
!Morte
Veteran Member
Join Date: May 2010
Old 12-09-2010 , 12:42   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#7

Quote:
Originally Posted by SkiGz View Post
explicame mejor !! si los flags ??
PHP Code:
if(is_user_admin(id) && get_user_flags(idADMIN_LEVEL_A
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 12-09-2010 , 13:03   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#8

PHP Code:
// 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...")
    }
    if(
is_user_admin(id) && get_user_flags(idADMIN_LEVEL_A)
    }


queda así??
SkiGz is offline
Send a message via MSN to SkiGz
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 12-09-2010 , 13:08   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#9

Es aqui SkiGZ:

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;
    } 
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
SkiGz
BANNED
Join Date: Aug 2010
Location: Venezuela
Old 12-09-2010 , 13:18   Re: [ES][ZP] Happy Hour Sacando DUDAS!!!
#10

Quote:
Originally Posted by S34Qu4K3 View Post
Es aqui SkiGZ:

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;
    } 

PHP Code:

// Reward ammo packs for every [ammo damage] dealt
            
while (g_damagedealt[attacker] >= (ammodamage / (g_happytime 1)) )
                {
                    if(
is_user_admin(id) && get_user_flags(idADMIN_LEVEL_A)
                }
                    
g_ammopacks[attacker] += (is_user_admin(attacker) ? 1)
                    
g_damagedealt[attacker] -=  (ammodamage / (g_happytime 1))
                }
        }
        
        return 
HAM_IGNORED;
    } 
Error: Undefined symbol "id" on line 1775
Error: Invalid expression, assumed zero on line 1776

2 Errors.

Last edited by SkiGz; 12-09-2010 at 13:21.
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 08:15.


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