Raised This Month: $51 Target: $400
 12% 

[ANY] Server Config Delayed Execution


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tonybear
Junior Member
Join Date: Jun 2017
Plugin ID:
5683
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds a 60 second delay before executing Server.CFG again
    Old 06-29-2017 , 23:22   [ANY] Server Config Delayed Execution
    Reply With Quote #1

    There are some plugins in specific such as SQL VIP Managers that override admins and such when plugins are loaded even if you put sm_reloadadmins sm_rehash in your server config file. This plugin will handle that by executing whatever is in your server.cfg after 60 seconds.

    If you want to reload admins after 60 seconds after all plugins have loaded just to correct any issues that VIP systems may be causing, this plugin is for you. Just add sm_reloadadmins and sm_rehash to your server.cfg and this plugin will do the rest.

    (Yes, server.cfg will still execute as normal, this just executes it a second time after 60 seconds after all plugins have loaded)

    INSTALLATION:
    • Put DelayConfigExec.smx in /server_dir/addons/sourcemod/plugins

    BUGS:
    • N/A
    Attached Files
    File Type: sp Get Plugin or Get Source (DelayConfigExec.sp - 773 views - 625 Bytes)
    File Type: smx DelayConfigExec.smx (3.9 KB, 319 views)
    Tonybear is offline
    zyox123cc
    Senior Member
    Join Date: Jul 2016
    Location: spycrab
    Old 06-29-2017 , 23:45   Re: [ANY] Server Config Delayed Execution
    Reply With Quote #2

    Code:
    public OnAllPluginsLoaded()
    {
    	CreateTimer(60.0, Command_FireConfig);
    }
    
    //Execute the config after the above delay
    public Action:Command_FireConfig(Handle timer)
    {
    	ServerCommand("exec server.cfg");
    }
    like a scripts
    why dont use any Command Time-Traveler
    sm_future exec server2
    __________________
    sv_downloadurl Recommended FREE website
    000webhost(File is too big (max. 32MB)! Upload will be skipped.)
    rejetto
    (Local_computer_host)
    Getting material/model paths easy way (Windows)
    steam profile
    Youtube
    zyox123cc is offline
    Tonybear
    Junior Member
    Join Date: Jun 2017
    Old 06-30-2017 , 03:13   Re: [ANY] Server Config Delayed Execution
    Reply With Quote #3

    I would use that but this one does it automatically so users don't have to schedule it, just makes it more automated.
    Tonybear 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 20:25.


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