View Single Post
  #6  
Old 03-03-2011, 05:09 AM
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
Use ChatBar.onAction() for Chat Commands instead.

PHP Code:
//#CLIENTSIDE
function ChatBar.onAction() {
  switch (
ChatBar.text.trim()) {
    case 
"/hug":   temp.gani = "grab";  break;
    case 
"/sit":   temp.gani = "sit";   break;
    case 
"/dance": temp.gani = "dance"; break;
  }
  if (
temp.gani.type() != -1) {
    
ChatBar.text = "";
    
player.setani(temp.gani, "");
  }
} 
__________________
Quote:

Last edited by fowlplay4; 03-03-2011 at 05:21 AM..
Reply With Quote