You're assigning the owner variable backwards.
this.variable = this.value;
Also you're mixing GS1 with GS2 again.. I could of sworn we went over this in another thread. Use this.chat instead of message.
this.chat = "whatever you want it to say" SPC player.account;
You can store the account in a attr[], and use that on the clientside to prevent people from walking into it or whatever you want.
Example:
PHP Code:
function onPlayerChats() {
if (player.chat == "setaccount") {
this.owner = player.account;
this.attr[2] = this.owner;
}
}
//#CLIENTSIDE
function onPlayerTouchsMe() {
if (this.attr[2] == player.account) player.chat = "You are the owner!";
}
Using your properly scripted owner flag you can check if someone has rented the space or not with a check like so..
if (this.variable != null) echo("This variable has a value of" SPC this.variable @ "!");