hi try something like this.
list OwnerDialog = ["owner","owner1","owner2"]; //<----saperate dialog for ownter
list RenterDialog = ["renter","renter1","renter2"]; //<----saperate dialog for renter
list OtherDialog = ["other","other1","other2"]; //<-----------saperate dialog for others
string message = "\n Please make a choice."; //<----message to post on dialog
list OwnerKey = []; //<---------owner keys
list RenterKey = []; //<-------renter keys
list OtherKey = []; //<------other keys
key ToucherID; //<------ toucher key
string ToucherName;
integer ChannelDialog;
integer ListenerRemoverID;
default{
state_entry(){
ChannelDialog = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) );
}
touch_start(integer total_num){
ToucherID = llDetectedKey(0);
if(~llListFindList(OwnerKey,[(string)ToucherID])){
llDialog(ToucherID, message,OwnerDialog, ChannelDialog);
ListenerRemoverID = llListen(ChannelDialog, "", ToucherID, "");
}
else if(~llListFindList(RenterKey,[(string)ToucherID])){
llDialog(ToucherID, message,RenterDialog, ChannelDialog);
ListenerRemoverID = llListen(ChannelDialog, "", ToucherID, "");
}
else if(~llListFindList(OtherKey,[(string)ToucherID])){
llDialog(ToucherID, message,OtherDialog, ChannelDialog);
ListenerRemoverID = llListen(ChannelDialog, "", ToucherID, "");
}
else{
llInstantMessage(ToucherID,"you are not Authorised");
}
}
}