Hi!
I'm currently running a warserver for loaning, and I've run into a problem.
The thing is that quite a bunch has the rcon password for it(yes, they're allowed to play on it

but they usually forget to reset the regular sv_password when they leave the server after their PCW meaning no others can access it until I change the password.
And even then their CVARS might be completely different from what they are supposed to be.
So what I want is a plugin that runs a .cfg(that resets all the cvars to the original state, and resets the password) file everytime the server gets empty.
BUT. I do know some programming so all logic says this is an easy to make script, but I havent programmed an AMXmod plugin before, so I am not familiar with the programming language of it.
So I figured some kind person here might do it for me.
Just something that goes like this, but in AMXx code ofc
if server == empty
then
run "config.cfg"
Any ideas?