Quote:
Originally Posted by Emera
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
}