Quote:
Originally Posted by Emera
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;
}