levelsranks / levels-ranks-core

Statistics plugin for servers on the Source Engine
GNU General Public License v3.0
73 stars 39 forks source link

Move hardcoded values to config #10

Open CrazyHackGUT opened 4 years ago

CrazyHackGUT commented 4 years ago

At this moment, LR use hard-coded array for menu for removing/adding player points. https://github.com/levelsranks/levels-ranks-core/blob/b4cc529ca68d8c4d8741ce66a25f5dc6fda6426b/Game%20Server/addons/sourcemod/scripting/levels_ranks/menus.sp#L189-L194 I suggest move this array to configuration. Create file with name like addons/sourcemod/configs/levels_ranks/menu_points.ini, and fill with content like:

-1000
-100
-10
10
100
1000

Without KeyValues, because this is simple to read with File methodmap.