AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2]A plugin that prevents empty server running 3rd party map (https://forums.alliedmods.net/showthread.php?t=308075)

rikka0w0 06-05-2018 13:21

[L4D2]A plugin that prevents empty server running 3rd party map
 
1 Attachment(s)
A lot dedicated servers have this problem:
The server no longer has player but it is still running a 3rd party map, this prevents people without the specific 3rd party map from joining the server.

This plugin checks the map name and number of online player, if the above condition keeps for more than 5x12 seconds, then change the map to default official map(c1m1_hotel).

checking intervals and default official map are hard coded, modifications are only possible by modifying the source and recompiling it.

Source code and smx file are available.

Possible improvements:
Check the map and number of players when a player leaves the server?

eyal282 06-05-2018 13:43

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
Terrible plugin and it's not allowed to post .smx files, change the .txt file into .sp with winrar or just change the name and it will automatically compile.

Mi.Cura 06-05-2018 17:53

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
I'll test this, that's a good idea.

I used one that changed to map a specific regular map when the server was empty.

But this changes only when it is in custom map, it looks good to me.

Mi.Cura 06-05-2018 18:05

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
Works very well, thanks.

rikka0w0 07-06-2018 14:28

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
I made another plugin, Improved Automatic Campaign Switcher, which offers a similar function but more flexible.

eyal282 07-07-2018 15:04

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
You should just use onclientdisconnect_post, and a non-repetitive timer of x seconds before changing back to c1m1_hotel.

rikka0w0 07-15-2018 11:53

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
Quote:

Originally Posted by eyal282 (Post 2601719)
You should just use onclientdisconnect_post, and a non-repetitive timer of x seconds before changing back to c1m1_hotel.

Thanks

I have fixed this problem in Improved ACS, the detection now uses onclientdisconnect()
https://forums.alliedmods.net/showthread.php?t=308708

And this feature can be turned off by setting a ConVar

Lux 07-17-2018 04:00

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
Why have i not done this? :O

Gj on making this :3

Neon123 06-17-2021 09:35

Re: [L4D2]A plugin that prevents empty server running 3rd party map
 
i tried to use the plugin but its not working


All times are GMT -4. The time now is 13:28.

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