Page 1 of 1

Map Requests

Posted: Mon Nov 22, 2021 8:58 am
by greenie
MAP REQUESTER

=============

Description:
This plugin is made for clients to request maps that aren't on the server easier instead of asking admins every time they play about new maps.
It creates 2 files located in the amxmodx/data folder.
- req_stats.ini holds the requested maps and the amount of requests on a map.
- req_logs.ini holds the steamid's and mapnames of every requests, so abusers can be punished.
There are a max number of requests a client can make, to avoid spammers.


Commands:
say /requestmap <mapname> : Adds a request to the ini file.
requestmap <mapname> : Adds a request to the ini file.
checkreq : Lists the requested maps in console.

Credits:
Fysiks: Improving my code.
Seta00: Figuring out an annoying bug.

Cvars:
amx_mapreq_advertdelay 340.0 : The delay between 2 adverts printed.

Changelog:
v1.0 - Initial release
v1.1 - Minor fix, added checkreq command
v1.2 - Fixed admin access(fysiks)
v1.3 - Added colorchat(optional)
v1.4 - Added prefix
v1.5 - Added chat command, map check, no empty requests
v1.6 - Added console command again. (Fysiks asked)
v1.7 - Rewrote the whole plugin.
- Added stats StatsFile.
- Uses CellTrie.
- Uses 2th file to log steamid's.
v1.8 - Fixed 2 potential bugs (Fysiks)

Notes:
- You can change the number of maps clients can choose by editing #define MAX_REQUESTS 3 to the number you want
- To enable colorchat, uncomment the line //define USE_CC
- To change the prefix edit new const Prefix[] = "Your prefix"
get plugin
get source