View Single Post
  #6  
Old 09-07-2011, 05:52 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Usually I check a substring from position 0 to the position the first space is at
PHP Code:
switch (player.chat.substring(0player.chat.pos(" "))) {
  case  
"herp":  derp();  break;
  case  
"tick":  tock();  break;

__________________
Reply With Quote