SA-MP Forums Archive
Server on-demand? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server on-demand? (/showthread.php?tid=78855)



Server on-demand? - Programie - 23.05.2009

Hi,

I host a few SAMP-Servers on my Windows 2k3 VPS.
But now I have very less free RAM.

Is there any way to only load the game mode, filter scripts, etc. if someone wants to connect to the server and if the server is empty unload the game mode, filter scripts, etc.?

May it would be a good feature for the next SAMP-Server release.


Re: Server on-demand? - Limex - 28.05.2009

Well you could do like a blank gamemode, and under OnPlayerConnect send an RCON command to change mode.

And on your other mode, count how many are on.

And under OnPlayerDisconnect and if the count is now 0 send another RCON command to change back.

I'm sure nobody does that though ^^


Re: Server on-demand? - BP13 - 28.05.2009

wow that actually sounds very useful


Re: Server on-demand? - Programie - 31.05.2009

That sounds easy, but what would you do if you don't have the Pawn-Script of the game mode?
It should be "hoster friendly".

Maybe it's possible with a filter script?


Re: Server on-demand? - Programie - 31.05.2009

Quote:
Originally Posted by JeNkStAX
Get the low memory server.
What did you mean with "low memory server"?
Is it another SAMP-Server?


Re: Server on-demand? - watkijkje - 02.06.2009

Quote:
Originally Posted by JeNkStAX
There used to be a low memory version of the 0.2.X Server avaliable from files.sa-mp.co but it appears to have been taken down,
No doubt some quick ******-ing will find it.
Wasn't that one Client Only?


Re: Server on-demand? - KingJ - 02.06.2009

That was for the client only.

Regardless, the SA-MP server uses a tiny amount of memory compared to most other servers, what sort of memory usage are you seeing?