First off you should style the script to get a better look on it.
I also think you cant use:
PHP Code:
if (player.chat == "Start") && if (player.guild == "Events Team")
You can use two different ways:
PHP Code:
//first way:
if (player.chat == "Start") {
if (player.guild == "Events Team") {
//stuff
}
}
//seccond way:
if (player.chat == "Start" && player.guild == "Events Team") {
//stuff
}
also the command
is GS1. In GS2 it is
PHP Code:
this.chat = "bla"
Also at the part
PHP Code:
function onPlayerChats()
if (player.chat == "Start") && if (player.guild == "Events Team")
{
it should be
PHP Code:
function onPlayerChats() {
if (player.chat == "Start") && if (player.guild == "Events Team")
{
Here it´s a fixed version of yours:
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.image = "block.png";
}
function onPlayerChats() {
if (player.guild == "Events Team") {
if (player.chat == "Start") {
this.chat = "3";
sleep(1);
this.chat = "2";
sleep(1)
this.chat = "1";
sleep(1)
this.chat = "";
hide();
}
else
if (player.chat == "Stop") {
this.chat = "";
show();
}
}
}