Raised This Month: $32 Target: $400
 8% 

[CS:S] Source Cronjobs (SCJ)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Küspert
SourceMod Donor
Join Date: Aug 2006
Location: Germany
Plugin ID:
783
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Executes commands, files, etc. at a specific moments
    Old 02-26-2009 , 16:58   [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #1

    Hi,

    I know there are several plugins that add an cron-like functionality to the srcds, but in the past I started the code and now I finished it.

    Also it's a bit different to the other plugins.

    So SCJ offers 3 types of cronjobs:
    • round <-- every x rounds the given command is executed
    • period <-- after the specific period the command is executed
    • time <-- at this specific moment the task will be triggered
    The configuration file is based an on keyvalues file and looks like this:

    Code:
    "Source Cronjobs"
    {
        "1"
        {
            "type"                "round"
            "value"                "2"
            "task"                "say ROUND!"
        }    
        "2"
        {
            "type"                "time"
            "value"                "17:25"
            "task"                "say TIME!"
        }
        "3"
        {
            "type"                "period"
            "value"                "60.5"
            "task"                "say PERIOD!"
        }    
    }
    Also be aware of the format of the time and period time! The time has to be given in this syntax:

    Code:
    HH:MM
    And the period value has to be a floating value, also explained in the config file!

    Code:
    // Important notes for YOU!
    //
    // Not for me 'cause I actually know what I've coded ;)
    //
    // You are allowd to use 3 types:
    //
    //    * 1st:        round        after x rounds (defined in "value" key) the task is executed. The value types has to be unique!
    //    * 2nd:        period        after x seconds (defined in the "value" key) the task is executed. Value has to be a float!
    //    * 3rd:        time        at this time (defined in the "value" key) the task will be executed (24 hour style. From 00:00 to 23:59).
    //
    // Multiple commands can be seperated with a ";"
    Information:
    • Current stable version: 1.0.0
    • Current test version: N/A
    Bugs:
    • If you want to report bugs use this thread or (better in my opinion) use my bugtracker (you have to register) at: http://mantis.srcds.net
    • Please give enough information to help to solve this problem!
    • Thanks
    Changelog:
    • Currently NONE!
    Planned features:
    • You can also see @ http://mantis.srcds.net

    • Version 1.1.0:

      • Command to trigger an "recompiling" of the cronjobs file
      • Creation of "one time" cronjobs
    Folder structure:
    • sourcecronjobs.smx --> /addons/sourcemod/plugins/
    • sourcecronjobs.sp --> /addons/sourcemod/scripting/
    • sourcecronjobs.txt --> /addons/sourcemod/config/
    • sourcecronjobs.cfg --> /cfg/sourcemod/
    Hope you like the plugin!

    Cya
    Attached Files
    File Type: sp Get Plugin or Get Source (sourcecronjobs.sp - 1565 views - 11.9 KB)
    File Type: zip Source_Cronjobs_20090226_225636.zip (11.5 KB, 1017 views)

    Last edited by Küspert; 02-28-2009 at 04:18.
    Küspert is offline
    Send a message via ICQ to Küspert
    Molli
    SourceMod Donor
    Join Date: Aug 2007
    Location: Finland
    Old 03-01-2009 , 02:19   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #2

    GJ.
    Molli is offline
    BOYSplayCS
    BANNED
    Join Date: Apr 2008
    Location: Gainesville, FL
    Old 03-01-2009 , 20:00   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #3

    Wow, this is very interesting. Like the idea.

    +karma
    BOYSplayCS is offline
    Küspert
    SourceMod Donor
    Join Date: Aug 2006
    Location: Germany
    Old 03-02-2009 , 05:30   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #4

    Glad that you like it

    Hope it's working correctly, 'cause I've no rootserver anymore to test it and also no gs.

    Loading SRCDS on my local PC now
    __________________
    SILENCE! I Kill YOU!
    Küspert is offline
    Send a message via ICQ to Küspert
    Sgt-Mess
    Senior Member
    Join Date: Dec 2007
    Location: Sway Side,WA
    Old 03-04-2009 , 22:34   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #5

    Can you please add a monday threw sunday so that you can exec configs on a daily basis. And will this work with any source game, or just C:SS?
    __________________
    Sgt-Mess is offline
    Send a message via AIM to Sgt-Mess
    Küspert
    SourceMod Donor
    Join Date: Aug 2006
    Location: Germany
    Old 03-05-2009 , 13:05   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #6

    At the moment it's only CS:S 'cause I'm including <cstrike.cfg> for calculating the total round.

    But I'll se to get it working on all Engines and Games.

    Thx, for the feature request.

    At the moment I don't have much time, school is freaking me out. But I'll see what I can do.

    Let's see what weekend brings
    __________________
    SILENCE! I Kill YOU!
    Küspert is offline
    Send a message via ICQ to Küspert
    kimkof
    New Member
    Join Date: Aug 2005
    Old 04-03-2009 , 07:18   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #7

    Hi

    There is a way for implementing player number?

    "type" "player"
    "value" "<12"
    cmd sm_restrict
    kimkof is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 04-15-2009 , 17:53   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #8

    Is there a way to config this to say

    "get out of spawn" at about 10 left?

    Otto
    __________________
    Director

    Gaming with benefits.
    www.n00bsalad.net
    ottobohn is offline
    Küspert
    SourceMod Donor
    Join Date: Aug 2006
    Location: Germany
    Old 04-20-2009 , 02:56   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #9

    Sry had to do a lot of things at home and also i had no pc.

    @kimof:

    You want that every player who's Index is smaller than 12 has a restriction right?

    @ottobohn:

    You mean a simple timer right? After a certain event e.g. the freeze it counts 10 and then the message appears.

    I'll see what i can do
    __________________
    SILENCE! I Kill YOU!
    Küspert is offline
    Send a message via ICQ to Küspert
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 07-20-2009 , 16:43   Re: [CS:S] Source Cronjobs (SCJ)
    Reply With Quote #10

    great one, I wil use it for my wow mod ;-)
    Stinkyfax is offline
    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 02:27.


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