AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event when server is empty (https://forums.alliedmods.net/showthread.php?t=54652)

MeanE 04-30-2007 19:25

Event when server is empty
 
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?

Deviance 04-30-2007 19:35

Re: Event when server is empty
 
Wrong section, this should be posted in Suggestions / Requests

MeanE 04-30-2007 19:50

Re: Event when server is empty
 
Quote:

Originally Posted by Deviance (Post 471756)
Wrong section, this should be posted in Suggestions / Requests

Soz mate, if moderator could move it - it would be appreciated! :)

pRED* 04-30-2007 19:54

Re: Event when server is empty
 
http://forums.alliedmods.net/showthr...t=server+empty

MeanE 05-01-2007 05:43

Re: Event when server is empty
 
Thanks mate :D


All times are GMT -4. The time now is 06:37.

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