![]() |
Server Flag Adder
2 Attachment(s)
I have finally completed my code! Thank you to everybody who contributed towards the completion of the code by helping me out on various threads I have created about the development of this tool.
The Tool The Server Flag Adder is a tool for displaying all of the current server flags in a nice GUI menu. Within the menu, you have the option to add flags to the server without creating them through a script. It displays the flags you already have present on your server with a Text List control in a nice little interface. I myself like to use GUI's as much as I can as it makes whatever you are developing nice and tidy (if you design the GUI properly!) To open the GUI, all the player has to do is chat "/flagadder". Obviously, you can change that command to whatever you prefer or even allow it to open after a certain key has been pressed. CODE PHP Code:
Have fun! |
Good job finishing your script. :) I have a few suggestions, if you feel like improving it.
Before modifying the serverr flag, verify that the player is who it should be. An abusive player could manipulate their client into sending a trigger to this weapon and modify any serverr flag they wish. PHP Code:
PHP Code:
|
Replaced the method for activating the GUI and also added some security. It reads from this.allowed instead of the server options. I don't want every single staff member to have access to this script.
PHP Code:
PHP Code:
And thank you for helping me out :D EDIT: Didn't want to double post. It now recognizes your GUI style and adapts its design to fit with it. Say if I was using Toon.wba (best theme ever), the theme would become toon.wba |
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Fixed. Added to first post.
PHP Code:
|
Don't do what you did:
PHP Code:
PHP Code:
PHP Code:
Also: PHP Code:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
All times are GMT +2. The time now is 02:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.