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

Auto Restart


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development       
Lopol2010
Junior Member
Join Date: Aug 2015
Location: Russia
Old 05-19-2021 , 02:34   Auto Restart
Reply With Quote #1

.: Description :.
When developing a plugin you might often manually restart server.
This plugin removes this annoying repeating step.

.: How it works :.
The plugin looks for file changes in specified paths to a file or directory, once detected it will restart server.
For example default paths:
Quote:
plugins.ini
users.ini
plugins/
.: Settings :.
PHP Code:
/* SETTINGS */

// Root for paths is cstrike folder.
// Specify path to directory to monitor all *files* there. Non-recursive.
// Path to a single file can also be here.
new const PATHS[][] = {
    
"addons/amxmodx/plugins/",              // Monitor all files in directory
    
"addons/amxmodx/configs/plugins.ini",   // Or single file
    
"addons/amxmodx/configs/users.ini",     
    
//"maps/"                                 // Useful  for mappers 
}

#define RESTART_CMD "restart"   // Restart type. Example "restart" or "amx_map de_dust2"
#define POLL_RATE 1.0           // Polling rate. Will check for changes at this rate.

/* END SETTINGS */ 
Attached Files
File Type: sma Get Plugin or Get Source (ar.sma - 94 views - 2.8 KB)
Lopol2010 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 05-21-2021 , 08:17   Re: Auto Restart
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=440397
https://forums.alliedmods.net/showthread.php?p=774988

These two plugins do what yours does, and a much better alternative.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Lopol2010
Junior Member
Join Date: Aug 2015
Location: Russia
Old 05-21-2021 , 16:58   Re: Auto Restart
Reply With Quote #3

Quote:
Originally Posted by DruGzOG View Post
Hmm. Can you please explain how these two do the task? I tried to understand but got no luck :\
Lopol2010 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 17:48.


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