View Single Post
  #14  
Old 05-05-2011, 11:04 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 Emera View Post
PHP Code:
 //#CLIENTSIDE 
function onPlayerChats() { 
  
player.chat player.nick ": " player.chat

This doesn't work. I tried it out in a separate script to test it out and i can't see my nickname at the start of the chat. Also, how can i turn my original script on / off using onWeaponFired() ?
HTML Code:
//#CLIENTSIDE
function onWeaponFired() {
  this.on = !this.on;
  player.chat = "Nicknames" SPC (this.on? "on":"off");
}

function onPlayerChats() {
  if (this.on == false) return;
  player.chat = player.nick @ ":" SPC player.chat;
}
__________________
Reply With Quote