View Single Post
Toranks
Senior Member
Join Date: Dec 2021
Location: Spain
Old 08-11-2022 , 05:07   Re: Reload a plugin every X seconds
Reply With Quote #8

Quote:
Originally Posted by Franc1sco View Post
Hello, for reload the plugin this should works
PHP Code:
#include <sourcemod>

#define TIMER_INTERVAL 300.0
#define PLUGIN_NAME "l4d2_meleemod2.2.1"

public void OnPluginStart()
{
    
CreateTimer(TIMER_INTERVALTimer_Reload_TIMER_REPEAT);
}

public 
Action Timer_Reload(Handle timer)
{
    
ServerCommand("sm plugins reload %s"PLUGIN_NAME);

You can change the define values and compile here.
Thanks!
Trying to find some plugin that activates fatigue for melee during further extensive searching, I couldn't find anything.
This will do the job in the meantime.
Toranks is offline