lLinux Posted January 8, 2014 Share 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 ) Link to comment
Sasu Posted January 8, 2014 Share 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 ) Link to comment
PhantomDamn Posted January 10, 2014 Share Posted January 10, 2014 esto reconoceria Everyone? Link to comment
Bc# Posted January 10, 2014 Share Posted January 10, 2014 Reservado solo para "Admin". Link to comment
PhantomDamn Posted January 12, 2014 Share Posted January 12, 2014 lol eso ya lo se.. pero si se pone para Everyone si serviria? Link to comment
Sasu Posted January 12, 2014 Share Posted January 12, 2014 Para eso le sacas el segundo if y ya. Link to comment
Alexs Posted January 13, 2014 Share 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. Link to comment
Recommended Posts