Just for some of you begining people wanting to make a playerhouse system for your server you can use the info. below to help you out a bit ...
NPC Code:
NPC Code:
// NPC made by Nyght GT
// El-Cheapo House System
// 12/3/01
// Makes you the owner
if (created) {
setstring this.owners,#a;
}
// If your an owner you can add keys by saying 'addkey
// accountname'
if (playerchats && startswith(addkey,#c)) {
if (strcontains(#a,#s(this.owners))) {
tokenize #c;
setstring this.owners,#s(this.owners) #t(1);
}
}
// If your an owner you can delete keys by saying 'delkey
// accountname'
if (playerchats && startswith(delkey,#c)) {
if (strcontains(#a,#s(this.owners))) {
tokenize #c;
if (indexof(#t(1),#s(ths.owners))>-1) {
setstring this.owners,#e(0,(indexof(#t(1),#s(this.owners))), #s(this.owners))#e(indexof(#t(1),#s(this.owners))+ strlen(#t(1))+1,-1,#s(this.owners));
}
}
}
// If your an owner it lets you in
if (playertouchsme && stcontains(#a,#s(this.owners))) {
hidelocal;
timeout=1.35;
}
if (timeout) {
show;
}
This should work but, I am not sure but it is just something I got bored and wrote on here about....