PHP Code:
function onActionServerside(acct, gname) {
temp.pl = findplayer(acct);
temp.pl.guild = gname;
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/guild")) {
temp.tokens = player.chat.tokenize();
temp.blah = temp.tokens[0].length() + 1
triggerserver("weapon", this.name, player.account, player.chat.substring(temp.blah));
}
}
Should work.