View Single Post
  #4  
Old 11-15-2007, 04:16 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
HTML Code:
function onActionServerside(option) {
  if (temp.option == "createGuild") {  
    temp.guildName = player.chat.substring(9).trim();
    addGuildMember(temp.guildName, player.account, player.nick);

    player.chat = "Created guild:" SPC temp.guildName @ "!";
    player.guild = temp.guildName;
  }
}
//#CLIENTSIDE
function onPlayerChats() {
  if (player.chat.starts("/addGuild")) {
    triggerserver("weapon", this.name, "createGuild");
  }
}
You might want to actually check if the guild already exists
__________________
Reply With Quote