Quote:
Originally Posted by ff7chocoboknight
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.