Raised This Month: $ Target: $400
 0% 

Happy hour


Post New Thread Reply   
 
Thread Tools Display Modes
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
wyrda
Member
Join Date: Nov 2009
Old 12-27-2009 , 19:55   Re: Happy hour
Reply With Quote #2

You also must check if minutes == 0 and seconds == 0

Last edited by wyrda; 12-28-2009 at 03:42.
wyrda is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 01-01-2010 , 01:02   Re: Happy hour
Reply With Quote #3

You spam, bother, and a lot of more things in the Other forums and now you want support on this with another account? I dont think so.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Reply



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