View Single Post
  #5  
Old 06-27-2011, 09:26 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by callimuc View Post
Since a lot of people have problems with sethat and so on, here is a script for the sethat command. Ik this is not your request but maybe it will help people in the future:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() 
{
  
tokens = player.chat.tokenize();
  if (
player.chat.starts("sethat")) {
    
player.attr[1] = tokens[1];
  }
} 
hmm i would do this
PHP Code:
function onPlayerChats() {
  if (
player.chat.starts("sethat")) {
    
player.attr[1] = player.chat.substring(7);
  }
} 
__________________
Reply With Quote