11-30-2014, 05:28 AM
It would be nice if the ranks could be named arbitrarily. I have 8 ranks on my server, I'd like to be able to set the number of homes for each of those ranks separately.
Hint: Read all the items in the INI file (use a for loop of cIniFile:GetValue(keyID, valueID); valueID should range from 0 to cIniFile:GetNumValues() - 1, keyID = cIniFile:FindKey()), store them in a table and use "rankTable[rankName] or DEFAULT_VALUE" to evaluate the number of allowed homes.
Hint: Read all the items in the INI file (use a for loop of cIniFile:GetValue(keyID, valueID); valueID should range from 0 to cIniFile:GetNumValues() - 1, keyID = cIniFile:FindKey()), store them in a table and use "rankTable[rankName] or DEFAULT_VALUE" to evaluate the number of allowed homes.