TheRock254 Posted March 16, 2014 Posted March 16, 2014 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
cheez3d Posted March 16, 2014 Posted March 16, 2014 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
Anubhav Posted March 16, 2014 Posted March 16, 2014 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 )
cheez3d Posted March 16, 2014 Posted March 16, 2014 Didn't notice I forgot a pharanthesis at the end . Thank you.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now