Jump to content

ACL Marker


TheRock254

Recommended Posts

addEventHandler("onMarkerHit",createMarker(1726.7969970703, -3491.5029296875, 20.170000076294,"cylinder",2,187,5,175,170),showGui) 

How to create acl marker?

if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(p)), aclGetGroup("Admin")) then 
addEventHandler("onMarkerHit",createMarker(1726.7969970703, -3491.5029296875, 20.170000076294,"cylinder",2,187,5,175,170),showGui) 
end 

Im try this but its not work :(

Link to comment
  
addEventHandler("onMarkerHit",createMarker(1726.7969970703, -3491.5029296875, 20.170000076294,"cylinder",2,187,5,175,170),function(element) -- the event "onMarkerHit" has 2 parameters of which one is the element that hit the marker 
    if getElementType(element) == "player" then -- we check if the element is a player 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(element)),aclGetGroup("Admin")) then -- we check if the player is an admin 
            -- your stuff 
        else 
            outputChatBox("You're not an admin!",element) -- player isn't an admin 
        end 
    end 
end 
  

Link to comment
  
  
addEventHandler("onMarkerHit",createMarker(1726.7969970703, -3491.5029296875, 20.170000076294,"cylinder",2,187,5,175,170),function(element) -- the event "onMarkerHit" has 2 parameters of which one is the element that hit the marker 
    if getElementType(element) == "player" then -- we check if the element is a player 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(element)),aclGetGroup("Admin")) then -- we check if the player is an admin 
            -- your stuff 
        else 
            outputChatBox("You're not an admin!",element) -- player isn't an admin 
        end 
    end 
end 
 ) 
  

Link to comment

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...