Jump to content

Help! GUI opening for everyone!


Recommended Posts

Posted

Help! GUI opening for everyone!

function dontTryBug() 
if ( guiGetVisible ( oneMinute ) ~= true ) then 
if source == Marker[2] then 
guiSetVisible ( GUIEditor.window[1], true ) 
showCursor ( true ) 
else 
if timeRem ~= "1" then 
if source == Marker[2] then 
showCursor ( false ) 
destroyElement ( GUIEditor.window[1] ) 
        end 
     end 
    end 
  end 
end 
addEventHandler("onClientMarkerHit", getRootElement(), dontTryBug) 

Posted
function dontTryBug(element) 
    if element == localPlayer then 
        if ( guiGetVisible ( oneMinute ) ~= true ) then 
            if source == Marker[2] then 
                guiSetVisible ( GUIEditor.window[1], true ) 
                showCursor ( true ) 
            else 
                if timeRem ~= "1" then 
                    if source == Marker[2] then 
                    showCursor ( false ) 
                    destroyElement ( GUIEditor.window[1] ) 
                    end 
                end 
            end 
        end 
    end 
end 
addEventHandler("onClientMarkerHit", getRootElement(), dontTryBug) 
  

Posted

Try this

function dontTryBug ( hitPlayer, matchingDimension ) 
   if matchingDimension and isElement(hitPlayer) and getElementType ( hitPlayer ) == "player" and hitPlayer == localPlayer then 
-- Your code 
  end  
end  

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...