I hope this is the right place to post this, but i'm getting into Gscript2, and want to make sure i do everything correct, i was just wondering if i scripted this correctly, and what i could different and/or better.
PHP Code:
function onCreated ()
{
setimg ("door.png");
}
//#CLIENTSIDE
function onPlayerchats ()
{
if (player.chat == "hello")
{
this.chat = "hi There";
}
else
if (player.chat == "you're dumb")
{
this.chat = "I do NOT wish to talk to you sir.";
}
}
yeah i know it's a talking door.