Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HimeKometa opened this issue Nov 20, 2024 · 2 comments
Open

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

HimeKometa opened this issue Nov 20, 2024 · 2 comments

Comments

@HimeKometa
Copy link

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
Copy link
Contributor

vexx-sm commented Nov 21, 2024

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
Copy link
Author

Everything works just right, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants