View Single Post
  #3  
Old 08-26-2011, 05:39 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
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
__________________

Last edited by Emera; 08-26-2011 at 06:52 PM..
Reply With Quote