Admins can now use a single command to randomly change the map. It works by the plugin reading all the lines from the file 'mapcycle.txt' and then randomly choosing one.
Admin Commands:
amx_random_map (Required: ADMIN_MAP)
Important Note: Make sure there are maps listed inside your mapcycle.txt or nothing will happen.
Requirements:
AMX Mod X (version 1.8.1 or higher)
Credits:
Exolent - Major Coding Help
Arkshine - Coding Help
Changelog:
Version 1.0
Initial Release.
Version 1.1
Added FCVAR_SERVER and FCVAR_SPONLY for tracking.
Removed having to type '1' after amx_random_map.
Added fclose() to close the reading of the file.
Optimized code.
Installation Help:
* Place amx_random_map.amxx in your \account-name\counter-strike\cstrike\addons\amxmodx\plugins folder.
* Add amx_random_map.amxx to your plugins.ini file.
Last edited by BOYSplayCS; 08-31-2009 at 10:48.
Reason: New version: 1.1