Thread: Chat functions
View Single Post
  #4  
Old 05-31-2007, 12:36 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xAndrewx View Post
They're just examples of how it functions.
So all it is is a frame for a trigger? You could just do:

PHP Code:
function onActionServerSidecmdtokens )
{
  switch ( 
cmd )
  {
    case 
"test":
    {
       
// FOO
       
break;
    }
  }
}
//#CLIENTSIDE
function onPlayerChats()
{
  if ( ! 
player.chat.starts"/" ) )
  {
    return 
false;
  }
  
tokens player.chat.tokenize();
  
triggerServer"gui"nametokens );

__________________
Reply With Quote