GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 19 Maja 2016 Share Napisano 19 Maja 2016 Hi,While im still very new to coding sourcemod plugins i end up creating alot of stuff for my own server. i'll try to share anything that might be of use to anyone else.What will this plugin do?it will by default force a map change in your server every ~8 minutes if no players are connected to it. you can define the time interval with emptyrotate_time cvar. if you do change the default cvar value of 500.0 (~8 minutes) make sure you do it in the server.cfg file and not while the server is already running the plugin.Why?by default nmrih servers keep running the last played map until it has been changed by a player vote or server admin. this means that whenever people leave your server the server will be stuck at the last played map, this usually is a map that isn't too popular with people. this plugin will keep rotating maps in attempt of attracting people to your server, this will really help if your server runs alot of custom maps.Importantthis plugin will change maps to whatever sm_nextmap defines, it does not read your mapcycle file.you should activate sourcemod's randomcycle.smx plugin for the intended result.you can find randomcycle.smx in addons/sourcemod/plugins/disabledInstall instruction:drop nmrih_emptyrotate.smx in addons/sourcemod/plugins/ folder and it will work. additionally you could configure the emptyrotate_time cvar, this is not required. Attached Files nmrih_emptyrotate.smx (3.9 KB) Get Plugin or Get Source (nmrih_emptyrotate.sp - 829 Bytes) Wyświetl pełny artykuł Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi