Ok, I've spent half an hour working on the code and all important changes are done. Changelog so far:
Quote:
1.1 (serverredirect.sp)
! Fixed settings not being applied properly
! Fixed package (proper lay-out and correct files)
! Fixed mysql script, commented out the create database statement and fixed syntax.
? Now uses sv_maxvisibleplayers to determine max amount of players. Provides compatibility with reserved slot plugins.
+ Added sm_redirect_menusort to be able to choose how items get sorted.
1.1 serverredirect_ads.sp
+ Can prevent empty servers from being advertised by setting sm_redirect_ads_hideempty to 1
+ {MAP}, {CURR} and {MAX} can now be used in the sm_redirect_ads_format var.
|
I'll now have to test this against various games, this 'll take a bit longer
About compiling: the webcompiler will not work since it's not a single file plugin. I use Pawn Studio to compile, but spcomp.exe will do just fine. I have uploaded a new 1.0 zip file, which has 3 different packaging errors fixed (inc file is now in scripting/include, typo in .sql file fixed and wrong version of serverredirect_cmds.sp).
I you had any problems compiling the plugin, then please download the new 1.0 package. Compilation for both Sourcemod 1.1 and 1.2 will work (tested this using spcomp.exe). The binaries in that package have not changed.
Once I tested TF2, L4D, CSS and such, I'll post version 1.1 of the plugins.
@mauirixxx: renaming serverredirect.smx will give errors indeed. Once both serverredirect.smx and serverredirect_cmds are uploaded, it should work. Note that serverredirect.smx is required, the _cmds plugin is merely an extension that uses the main plugin.