View Single Post
  #2  
Old 09-18-2011, 10:44 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I could of sworn you were told this before but:

Put your "guild checking" on the server-side.

PHP Code:
function onCreated() {
  
this.guilds = {"Graal Police","Player Relations","Graal Police Admin","Player Relations Admin","Manager","Co-Manager","Owner","Co-Owner"};
}

function 
onActionServerSide() {
  if (
params[0] == "JailPlayer") {
    if (
player.guild in this.guilds) {
      
// do your jailing stuff..
    
}
  }

Can't really tell you why it's not working but why not just keep your onActionServerSide code in your weapon?
__________________
Quote:
Reply With Quote