View Single Post
eat1k
Senior Member
Join Date: Apr 2018
Old 01-12-2019 , 09:23   Re: CSO Costumes
Reply With Quote #4

I mean remove all the hardcode from plugin so people will be able to add costumes from config file (for example /amxmodx/configs/costumes.ini". Something like this:
PHP Code:
"category number" "name" "price" "submodel" // that will be number 1 in the menu of the specified category
"category number" "name" "price" "submodel" // that will be number 2 in the menu of the specified category (if the first was in category 1 and this one too, so it will be number 2) 
Regarding the CVar, if we disable the categories so it will be something like this:
PHP Code:
"name" "price" "submodel" // that will be number 1 in the main menu
"name" "price" "submodel" // that will be number 2 in the main menu 
To sum up, remove the hardcode:
PHP Code:
new const Costumes_SkinCT[][Vars] =
new const 
Costumes_SkinTR[][Vars] =
new const 
CostumeModels[][] =
new const 
Costumes_Head[][Vars2] =
new const 
Costumes_Back[][Vars2] =
new const 
Costumes_Pelvis[][Vars2] = 
__________________

Last edited by eat1k; 01-12-2019 at 09:23.
eat1k is offline