Also, as an improvement. I found quite non-convenient to create plugin uses your weapon Id system, if I need to store settings per-slot, because you have collision between melee id and primary weapon array id for slot 1, e.g.:
So, e.g. if I store weapon id = 1 in player's cookie for slot 1, there is no way to identify what weapon is it (pistol or baseball_bat).
Maybe, it make sense to shift indeces or rearrange them a bit to prevent those single collision.