The Events Team Admin in the pw I work for asked me to make him a script for a prize shop. I made it and he sent this script back saying it didn't work. This isn't the script I sent him though.... Can someone fix the script before I go mad?
HTML Code:
//#CLIENTSIDE
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";
}
}
}