Raised This Month: $ Target: $400
 0% 

task on specific hour and day


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 09-28-2011 , 10:32   task on specific hour and day
Reply With Quote #1

Code:
plugin_cfg()
{
    
    new dayname[33]
    new hour[3]
    get_time("%A", dayname, charsmax (dayname))
    get_time("%H", hour, charsmax(hour));

    if(!equali(dayname, "Saturday") && !equali(dayname, "Sunday")) 
    return PLUGIN_HANDLED

    if(equali(dayname, "Saturday") && equali(hour, "12")
     set_task

    else if(equali(dayname, "Sunday") && equali(hour, "12")
    set_task

}
I want to do something every WeekDays on 12o'clock
Would this work ? i just writed it, and i dont have where to test it.
Menethil is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-28-2011 , 11:29   Re: task on specific hour and day
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=69068
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-28-2011 , 11:59   Re: task on specific hour and day
Reply With Quote #3

Here's a similar thread regarding your request, if you care to read:

http://forums.alliedmods.net/showthread.php?t=167790
__________________
Bugsy is offline
Reply


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 19:35.


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