punteroo / TF2-Item-Plugins

SourceMod plugins for TF2 that allow players to manage their weapons (australium, festivizer, unusuals, spells, war paints) and cosmetics (unusuals, paints, spell paints, halloween spells). Now with SQLite support.
GNU General Public License v3.0
31 stars 4 forks source link

[REQUEST] Hats avaliable for Non-Admin users #35

Open HimeKometa opened 3 days ago

HimeKometa commented 3 days ago

Describe the bug Hello, I would like to do the same thing that is in the code for weapons and that is to overwrite RegAdminCmd to RegConsoleCmd and delete ADMIN_FLAG. I would do it myself, but unfortunately I can't compile the .sp correctly and I'm scratching my head over it. Could you do the version for me in some style please?

To Reproduce Steps to reproduce the behavior:

  1. Go to '/scripting/tf2itemplugin_cosmetics.sp'
  2. Click on 'RegAdminCmd(commandNames[i], CMD_TF2ItemPlugin_CosmeticManager, ADMFLAG_GENERIC, "Manage your cosmetics on the server.");'
  3. See error
  4. Fix it

Screenshots image

vexx-sm commented 2 days ago

Here's as requested. I can't test currently, but compiles and loads with no errors.. I await your feedback.

tf2itemplugin_cosmetics(ADMIN FIX).zip

HimeKometa commented 1 day ago

Everything works just right, thank you.