AMX Random Map - Version 1.1 [8/31/09]
1 Attachment(s)
AMX Random Map v1.1 BOYSplayCS Description: 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:
Requirements:
Credits:
Changelog:
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. |
Re: AMX Random Map - Version 1.0 [8/31/09]
Why 1 ? Is not amx_random_map enough ?!
Also, you forget to close the file after usage. |
Re: AMX Random Map - Version 1.0 [8/31/09]
And what if you use maps.ini? o.0
|
Re: AMX Random Map - Version 1.0 [8/31/09]
Quote:
I'll close the file in the next version. Quote:
|
Re: AMX Random Map - Version 1.0 [8/31/09]
Then in cmd_access(), change 2 by 1... Are you sure it's you who have written the plugin ? :mrgreen:
Quote:
|
Re: AMX Random Map - Version 1.0 [8/31/09]
Quote:
|
Re: AMX Random Map - Version 1.1 [8/31/09]
Update: Uploaded new version (1.1) and fixed a few bugs. See changelog.
To-Do: Add cvar to switch between mapcycle.txt and maps.ini |
Re: AMX Random Map - Version 1.1 [8/31/09]
File is not close in if (!iFile) {} and if (!iTotal) {}
and the client_print saying "[AMXX] Access Denied blabla" is pointless since you have already such message when you use cmd_access(). Quote:
|
Re: AMX Random Map - Version 1.1 [8/31/09]
Also you can add a cvar that when the first map end, the next map is RANDOM... obviusly you have to advertise ppl to pause plugins like mapchooser, galileo, etc..
And yes, like Arkshine said... in cmd_acces the number "2" means the COMMAND and the VALUE, so if you use number "1" you are only using the COMMAND. |
Re: AMX Random Map - Version 1.1 [8/31/09]
register_cvar("amx_random_map", "1.1", FCVAR_SERVER | FCVAR_SPONLY);
-> :mrgreen: register_cvar("amx_random_map", VERSION, FCVAR_SERVER | FCVAR_SPONLY); And remove PHP Code:
EDIT: @Arkshine: you said close file in if (!iFile) {}, its even not opened.. iFile is 0. |
All times are GMT -4. The time now is 21:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.