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:
//#CLIENTSIDE
function onCreated() {
this.allowed = {
"Community name 1", "Community name 2"
};
}
Then in the main script
PHP Code:
function Extent_Button1.onAction() {
if (player.communityname in this.allowed) {
addflags();
}
}
So you have to be in the this.allowed to be able to use the button to add flags.
And thank you for helping me out
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