Hi there! I'm trying to script a door that only the account OiRodgar can open with the command /open. Tried a few things but it won't work...
PHP Code:
// NPC made by unknown
//#CLIENTSIDE
function onCreated()
{
this.account="OiRodgar";
}
{
if(player.account==this.account)
{
function onPlayerchats()
{
if(player.chat=="/open")
{
hide();
}
}
}
}