Add a flags update forward in 1.8.3
Please, just do it. It's not hard to do. Making plugins for admin prefixes and stuff like that is pure death. You have to make multiple checks and functions in order to properly update the prefix when the flags change (on connect, on name change, etc) and you can't possibly detect all cases without editing other plugins.
PHP Code:
|
Re: Add a flags update forward in 1.8.3
Can you show any idea how to make this forward just by describing it? Also for what iFlags stands?
|
Re: Add a flags update forward in 1.8.3
What more descirption do you need than "called when the admin flags are updated"? It stand for the user's current flags.
|
Re: Add a flags update forward in 1.8.3
Quote:
|
Re: Add a flags update forward in 1.8.3
Do you know what a forward is? Are you an AMXX developer? Probably no to both questions. Just leave this to the people who it's meant for.
|
Re: Add a flags update forward in 1.8.3
Quote:
|
Re: Add a flags update forward in 1.8.3
He's actually described it enough to know exactly what he is requesting.
|
Re: Add a flags update forward in 1.8.3
The request is not directly related to the admin prefixes plugin. The requested feature is something that would be used inside of such a plugin for knowing when admin flags change.
So, the request is fully described in the code block (with two lines of code; one being a comment line) and the rest of his post is an explanation as to why he wants such a feature. |
Re: Add a flags update forward in 1.8.3
I can try doing this myself and submit a pull request, but I have no clue on how to compile the .cpp/.h files to get actual modules. Any quick tutorials? Is this going to work for the default AMXX files too?
amxmodx.cpp: Code:
^ Don't kill me if what I wrote makes no sense. |
Re: Add a flags update forward in 1.8.3
Wouldn't hurt to try it yourself, it's a great experience.
Anyway if you are on Windows you would need either Visual Studio 2013+ or just C++ Build Tools (I don't know if this will work, but it should). You also need Git to download necessary stuff (you can do without it, but it will make it easier) and Python installed to run AMBuild. Go to a directory where you want to download all this stuff and execute in order: Code:
### First time setup ### Now that you made sure it works, to make a contribution go to https://github.com/alliedmodders/amxmodx and click the "Fork" button. Make sure your current working directory is where you cloned amxmodx and execute following commands to set remote repositories. This is a one-time setup. Code:
git remote set-url origin https://github.com/<your GH username>/amxmodx Code:
git checkout master #Switch to the master branch |
All times are GMT -4. The time now is 06:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.