Fix the grab leash button not showing for others
This commit is contained in:
parent
8b325653ca
commit
d9ba708f86
2 changed files with 15 additions and 14 deletions
|
@ -69,16 +69,25 @@ call_menu(integer id, key kAv)
|
||||||
|
|
||||||
Main(key kID, integer iAuth)
|
Main(key kID, integer iAuth)
|
||||||
{
|
{
|
||||||
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Post", "Tools..", "Color"];
|
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Tools..", "Color"];
|
||||||
if(kID != llGetOwner())
|
if(g_kLeashedTo)
|
||||||
{
|
{
|
||||||
if(g_kLeashedTo)
|
// Unleash button
|
||||||
lMenu += ["Grab Leash"];
|
// Post button
|
||||||
else lMenu += ["Unleash"];
|
|
||||||
|
|
||||||
|
// Check Authority Level
|
||||||
|
if(iAuth <= g_iLeashedToAuth)
|
||||||
|
{
|
||||||
|
lMenu += ["Unleash", "Post"];
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
if(g_kLeashedTo) lMenu += ["Unleash"];
|
// Grab Leash
|
||||||
|
// Post
|
||||||
|
|
||||||
|
if(kID != llGetOwner()) lMenu += ["Grab Leash"];
|
||||||
|
lMenu += ["Post"];
|
||||||
}
|
}
|
||||||
|
|
||||||
list lHelper = [];
|
list lHelper = [];
|
||||||
string sText = "Leash Menu";
|
string sText = "Leash Menu";
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
#include "src/includes/common.lsl"
|
#include "src/includes/common.lsl"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
string sSetor(integer test, string a, string b)
|
|
||||||
{
|
|
||||||
if(test)return a;
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
|
|
||||||
default
|
default
|
||||||
{
|
{
|
||||||
state_entry()
|
state_entry()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue