
01-23-2002, 01:26 AM
|
|
Registered User
|
 |
Join Date: Aug 2001
Posts: 710
|
|
|
// NPC made by Lord Helmut
if(created){
this.max=7;
}
if(playerchats) {
tokenize #c;
if (strequals(#t(0),AddTenant)){
tokenize #s(server.ph1tenants);
if(strequals(#a,#t(0))){
if (tokenscount<=this.max) {
tokenize #c;
addstring server.ph1tenants,#t(1);
}else{
setplayerprop #c,You already have #v(this.max) tenants!;
}
}
}
if (strequals(#t(0),RemoveTenant)){
tokenize #s(server.ph1tenants);
if(strequals(#a,#t(0))){
removestring server.ph1tenants,#t(1);
}
}
}
Can anyone see any problems? For some reason when I make someone owner and they say addtenant it says You already have 0 tenants!
It works for me and lets me add people but anyone else it wont work for online =/ |
|
|
|