View Single Post
  #1  
Old 07-05-2011, 06:39 PM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
Problem with guilds

Ok , my script does not work , here is :

PHP Code:
// Scripted by *Trakan
//#CLIENTSIDE
function onWeaponFired() {
say2 Ecrit /tag pour mettre le #btag de ta nation!;
}
public function 
destroy() : void {
  
temp.stack = getCallStack();
  
temp.npc = stack[stack.size()-2].scriptcallobject.name;

  echo(
"[NPC Error]: '"@ npc @"' tried to delete '"@ this.name @"'");
}
function 
onActionServerSide(cmd, tag) {
  switch (
cmd) {
    case 
"tagOn": {
      if (
tag == null) {
        break;
      }

      
player.guild = tag;
      break;
    }
  }
}
//#CLIENTSIDE
function onPlayerChats() {
  switch (
player.chat) {
    case 
"/tag": {
      
triggerserver("gui", clientr.towntagrank, name, "tagOn", clientr.towntag);
      break;
    }
  }
} 
If i say /tag , nothing...
Thank you for your future help
Reply With Quote