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

MapCron


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Stillsetzhut
Junior Member
Join Date: Aug 2012
Plugin ID:
3207
Plugin Version:
1.2 RC
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A mapspecific time managment system, executes commands from a predetermined time after a map starts and after a player connection.
    Old 08-30-2012 , 10:45   MapCron
    Reply With Quote #1

    This plugin is orignal from altex, see also here.

    Prehistory:
    I found the GameCron plugin here, and I liked it well. But my server isn#t visited any time. If a player connects, the server restarts the game, but not GameCron restarts.
    So I've added a check about players connections.

    Description:
    A mapspecific time managment system, executes commands from a predetermined time after a map starts and after a player connection.

    Commands:
    Code:
    sm_mapcron_add <seconds> <command>     - Add delayed command.
    sm_mapcron_del <id>                    - Delete task by id.
    sm_mapcron_clear                       - Delete all tasks.
    sm_mapcron_list                        - List all current tasks.
    sm_mapcron_restart                     - Restart all timers for tasks.
    Changelog:
    v 1.2 RC 29/08/12:
    improved clientcheck

    v 1.1 beta 27/08/12:
    add clientcheck and servermessages

    v 1.0 beta 25/08/12:
    First run, add OnClinentConnected and OnClientDisconnected

    Credits:
    Original script by otstrel.ru Team
    Written by altex
    Reference: https://forums.alliedmods.net/showthread.php?p=820076

    Notes:
    If you want execute commands on every map at the same time, write them into the server.cfg, or into a mapspecific configuration file.
    It is advisable that you first commando can carry sm_mapcron_clear, as the list is not deleted after a map change.
    Attached Files
    File Type: smx mapcron.smx (5.7 KB, 203 views)
    File Type: sp Get Plugin or Get Source (mapcron.sp - 869 views - 8.7 KB)
    Stillsetzhut is offline
    noctua
    Member
    Join Date: Dec 2010
    Old 09-06-2012 , 10:03   Re: MapCron
    Reply With Quote #2

    Can you add a L4D Version? Works great so far, but if the round starts new, the timer is not resetting.

    example:
    sm_mapcron_add 30 "sm_cvar z_mob_spawn_min_interval_expert 40"
    sm_mapcron_add 240 "sm_cvar z_mob_spawn_min_interval_expert 45"
    sm_mapcron_add 480 "sm_cvar z_mob_spawn_min_interval_expert 35"

    if all player die and the round starts new (after 240 seconds), the next action is at 480 seconds. Will be great if the timer can be resettet.
    thx
    noctua 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 19:33.


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