AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Source Cronjobs (SCJ) (https://forums.alliedmods.net/showthread.php?t=86508)

Küspert 02-26-2009 16:58

[CS:S] Source Cronjobs (SCJ)
 
2 Attachment(s)
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

Molli 03-01-2009 02:19

Re: [CS:S] Source Cronjobs (SCJ)
 
GJ.

BOYSplayCS 03-01-2009 20:00

Re: [CS:S] Source Cronjobs (SCJ)
 
Wow, this is very interesting. Like the idea.

+karma

Küspert 03-02-2009 05:30

Re: [CS:S] Source Cronjobs (SCJ)
 
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 :)

Sgt-Mess 03-04-2009 22:34

Re: [CS:S] Source Cronjobs (SCJ)
 
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?

Küspert 03-05-2009 13:05

Re: [CS:S] Source Cronjobs (SCJ)
 
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 :crab:

kimkof 04-03-2009 07:18

Re: [CS:S] Source Cronjobs (SCJ)
 
Hi :)

There is a way for implementing player number?

"type" "player"
"value" "<12"
cmd sm_restrict

ottobohn 04-15-2009 17:53

Re: [CS:S] Source Cronjobs (SCJ)
 
Is there a way to config this to say

"get out of spawn" at about 1:30 left?

Otto

Küspert 04-20-2009 02:56

Re: [CS:S] Source Cronjobs (SCJ)
 
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 1:30 and then the message appears.

I'll see what i can do :)

Stinkyfax 07-20-2009 16:43

Re: [CS:S] Source Cronjobs (SCJ)
 
great one, I wil use it for my wow mod ;-)


All times are GMT -4. The time now is 08:16.

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