I don't mean to bother you guys with too many of my problems, but I've yet another script that I cannot figure out.
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.name = "Basic";
}
function onPlayerChats() {
if(player.chat.start=="/setname"){
this.name = player.chat - "/setname";
}
if(player.chat=="/showname") {
this.chat = "My name is" SPC this.name @".";
sleep(3);
this.chat = "";
}
}
The "/showname" function works perfectly, but I can't figure out the "/setname" function. I knew as soon as I saw it that it wouldn't work, but no matter what I try I can't figure out how to fix it.