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 ) Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
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 ) State: Inactive
PhantomDamn Posted January 10, 2014 Posted January 10, 2014 esto reconoceria Everyone? |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
Bc# Posted January 10, 2014 Posted January 10, 2014 Reservado solo para "Admin". Bc Media Clan XPG Foro mtasa://104.223.20.159:21003
PhantomDamn Posted January 12, 2014 Posted January 12, 2014 lol eso ya lo se.. pero si se pone para Everyone si serviria? |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
Sasu Posted January 12, 2014 Posted January 12, 2014 Para eso le sacas el segundo if y ya. State: Inactive
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. Developer @ MYVAL
Recommended Posts