Raised This Month: $ Target: $400
 0% 

Happy hour


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Imissyou
BANNED
Join Date: Dec 2009
Old 12-27-2009 , 03:33   Happy hour
Reply With Quote #1

well.. i want make a plugin wath set ammopacks x 2 on specific time..example 2 am - 5 am other example..

PHP Code:
new const horas[] = { 13,14,15,16,17,18,19,20,21,22,23,24,1,2,3,4,5,6,7,8,9,10,11,12 
PHP Code:
// Happy Hour
public happyhour(id)
{
    new 
data[3]
    
get_time("%H"data02)
    
    new 
Tiempo str_to_num(data)
    
    for(new 
i=2;<= sizeof horas 5;i++)
    {
        if(
Tiempo != horas[i]) continue
        
g_happytime true
    
}
    if(
g_happytime)
    {
        
set_task(0.1,"anuncio")    
    }
}
public 
anuncio(id)
{
    
zp_colored_print(0"^x04[ASD]^x03 Happy Hour:^x01 at^x03 [02:00 AM - 05:00 AM]^x01, win ammopacks x 2 !")  

but this only set ammopacks x2 all time.. sorry for my bad english :S and thks for all
Imissyou is offline
 


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 04:03.


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