lLinux Posted January 8, 2014 Posted January 8, 2014 Hola a todos, bueno mi duda es como hago un teleport que solo funcione para el grupo ACL admin. Intente asi: function entrar (hitElement, matchingDimension ) if isObjectInACLGroup("user."..getAccountName( getPlayerAccount(source) ), aclGetGroup("Admin")) then setElementPosition ( hitElement, 5291.6000976563, -2069.1000976563, 14.10000038147 ) end end addEventHandler( "onMarkerHit", Entrada, entrar ) y intente asi: function entrar (thePlayer, hitElement, matchingDimension ) if isObjectInACLGroup("user."..getAccountName( getPlayerAccount(thePlayer) ), aclGetGroup("Admin")) then setElementPosition ( hitElement, 5291.6000976563, -2069.1000976563, 14.10000038147 ) end end addEventHandler( "onMarkerHit", Entrada, entrar )
Sasu Posted January 8, 2014 Posted January 8, 2014 function entrar (hitElement, matchingDimension ) if hitElement and getElementType(hitElement) == 'player' then if isObjectInACLGroup("user."..getAccountName( getPlayerAccount(hitElement) ), aclGetGroup("Admin")) then setElementPosition ( hitElement, 5291.6000976563, -2069.1000976563, 14.10000038147 ) end end end addEventHandler( "onMarkerHit", Entrada, entrar )
PhantomDamn Posted January 12, 2014 Posted January 12, 2014 lol eso ya lo se.. pero si se pone para Everyone si serviria?
Alexs Posted January 13, 2014 Posted January 13, 2014 lol eso ya lo se.. pero si se pone para Everyone si serviria? En el caso del grupo 'Everyone', el 'ACL' utiliza esto: "Everyone"> "Default" /> "user.*" /> "resource.*" /> Lo que reconoce a todos los usuarios y jugadores, por lo tanto, todos pertenecen a el.
Recommended Posts