View Single Post
  #12  
Old 08-27-2011, 12:47 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by Emera View Post
PHP Code:
function onActionServerside() {
  
this.allowed = {
    
"McChucken""Other community name"
  
};
  if (
params[0] == "addflags")  { 
    if (
player.communityname in this.allowed) {
    
serverr.(@params[1]) = params[2];
    }  
  }

It's not necessary to set this.allowed every time the onActionServerSide event is invoked.

PHP Code:
function onCreated() {
  
//set this.allowed to whatever
}

function 
onActionServerSide() {
  
//stuff

Reply With Quote