Large update. From my testing it seems to be working well. Also thanks to bubbabyte for help finding some bugs while testing.
1.5 (10-May-2012)
- Added translations, required for the commands and menu title.
- Added optional translations for the hat names as requested by disawar1.
- Added cvar "l4d_hats_allow" to turn on/off the plugin.
- Added cvar "l4d_hats_modes" to control which game modes the plugin works in.
- Added cvar "l4d_hats_modes_off" same as above.
- Added cvar "l4d_hats_modes_tog" same as above, but only works for L4D2.
- Added cvar "l4d_hats_save" to save a players hat for next time they spawn or connect.
- Added command "sm_hatsize" to change the scale/size of hats as suggested by worminater.
- Fixed "l4d_hats_menu" flags not setting correctly.
- Optimized the plugin by hooking cvar changes.
- Selecting a hat from the menu no longer returns to the first page.