View Single Post
  #6  
Old 06-30-2011, 09:48 PM
xuntasi xuntasi is offline
Registered User
xuntasi's Avatar
Join Date: Jun 2011
Location: Deadaccountsville, Internet
Posts: 14
xuntasi is on a distinguished road
Question More scripting issues.

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.
__________________
This account is DEAD!
Reply With Quote