I’ve had an idea for a TTT weapon leveling system and I’m not sure how exactly to do it. The weapons would level based on the amount of kills the player has with them and would gain newer modifiers.
The problem is, I was thinking of doing it using tables, but I am not sure if you can concancenate ( is that the right word? ) variables into table names, sort of like you do it in strings :
// In PlayerDeath hook:
LVL…<steamid>[weaponname] = LVL<steamid>[weaponname] + 1
// with <steamid> being replaced by the player’s steam id :
The other way I was thinking of doing it, is using one or multiple files, storing the amounts of kills with each gun, but I’ve never worked with files before, so I am not sure how to do this. Could anyone point me in the right direction?