Check if an avatar is in a group
The SB_AVATAR_GROUP command checks whether an avatar is a member of a specific group.
For more information, see the SB_AVATAR_GROUP command documentation.
Script
// SmartBots AdminBot for Groups, https://www.mysmartbots.com
// Documentation and help: https://www.mysmartbots.com/dev/docs/AdminBot_for_LSL
default
{
touch_start(integer total_number) {
// Check avatar group
llMessageLinked(LINK_SET, SB_AVATAR_GROUP, "My group name", llDetectedKey(0));
}
// This event parses different replies from AdminBot
link_message(integer sender, integer cmd, string data, key id) {
// Group check results
if(cmd == SB_GROUP_CHECKED) {
llOwnerSay("Avatar " + (string)id + " group check result: " + data);
}
}
}