View Single Post
  #4  
Old 05-19-2007, 05:25 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by ff7chocoboknight View Post
So, it should be this...?
HTML Code:
//#SERVERSIDE
function onPlayerChats() {
  if (player.chat == "buy Juggling") {
     if (clientr.etcoins >= 30) {
        clientr.etcoins -= 30;
        addweapon ("*Prizes/Juggle");
     }
  }
  if (player.chat == "buy PK Heal") {
     if (clientr.etcoins >= 30) {
        clientr.etcoins -= 30;
        addweapon ("*Prizes/PK Heal");
    }
  }
  if (player.chat == "buy Jump") {
    if (clientr.etcoins >= 50) {
       clientr.etcoins -= 50;
       addweapon ("*Prizes/Jump");
    }
  }
    if (player.chat == "buy Light Mouse") {
     if (clientr.etcoins >= 150) {
        clientr.etcoins -= 150;
        addweapon ("*Prizes/Light Mouse");
    }
  }
}
It's what I sent him before, but without the //#SERVERSIDE
//#SERVERSIDE does not exist. You need to do a trigger from client to server to achieve what you are going after.
__________________
What signature? I see no signature?
Reply With Quote