AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   task on specific hour and day (https://forums.alliedmods.net/showthread.php?t=168391)

Menethil 09-28-2011 10:32

task on specific hour and day
 
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.

Emp` 09-28-2011 11:29

Re: task on specific hour and day
 
https://forums.alliedmods.net/showthread.php?t=69068

Bugsy 09-28-2011 11:59

Re: task on specific hour and day
 
Here's a similar thread regarding your request, if you care to read:

http://forums.alliedmods.net/showthread.php?t=167790


All times are GMT -4. The time now is 19:35.

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