XxRomxX Posted July 8, 2013 Posted July 8, 2013 Quisiera Saber como teletrasportar a todos los Jugadores que estén jugando en un servidor a mi posición para no estar warpeando 1x1 alguien sabe como hacerlo?
Alexs Posted July 8, 2013 Posted July 8, 2013 addCommandHandler( "warpall", function( thePlayer ) if isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( thePlayer ) ), aclGetGroup( "Admin" ) ) then local x, y, z = getElementPosition( thePlayer ) for k, i in ipairs ( getElementsByType( "player" ) ) do if not i == thePlayer then setElementPosition( i, x+math.random( 1, 4 ), y+math.random( 1, 4 ), z + 0.8, true ) end end end end )
XxRomxX Posted July 8, 2013 Author Posted July 8, 2013 Ok ya tengo todo listo pero no me carga el resource en el server
XxRomxX Posted July 9, 2013 Author Posted July 9, 2013 No,Solo Que no me carga el resource en la consola
BorderLine Posted July 9, 2013 Posted July 9, 2013 extraño, fijate que arroja la consola, puede que tengas errores en el meta, o que no escribiste bien el nombre del lua o etc
XxRomxX Posted July 9, 2013 Author Posted July 9, 2013 "[AGX]Sandman" name="teleport" type="script" version="1.0" /> Asi tengo el meta
NodZen Posted July 9, 2013 Posted July 9, 2013 "[AGX]Sandman" name="teleport" type="script" version="1.0" /> Asi tengo el meta "[AGX]Sandman" name="teleport" type="script" version="1.0" />
Anyelberth Posted July 9, 2013 Posted July 9, 2013 "[AGX]Sandman" name="teleport" type="script" version="1.0" /> Asi tengo el meta Cuando Se Trata De Teleport Yo Lo Dejo Asi: "[AGX]Sandman" name="teleport" version="1.0" type="script"/> y Si Me FUnciona.
XxRomxX Posted July 9, 2013 Author Posted July 9, 2013 Tengo una duda,Tengo que colocarlo al ACL,Porque No me funciona
MTA Team 0xCiBeR Posted July 9, 2013 MTA Team Posted July 9, 2013 Tengo una duda,Tengo que colocarlo al ACL,Porque No me funciona Estas en el ACL de Admin?
MTA Team 0xCiBeR Posted July 9, 2013 MTA Team Posted July 9, 2013 Fijate que no este duplicado el nombre(ocea que tengas 2 resources que se llamen igual) que se encuentre el meta donde debe estar, Y reinicia el servidor
XxRomxX Posted July 10, 2013 Author Posted July 10, 2013 No,No lo tengo repetido ya me funciona en el server pero al colocar el comando no me teletrasporta a nadie
XxRomxX Posted July 10, 2013 Author Posted July 10, 2013 Asi tengo el lua addCommandHandler( "warpall", function( thePlayer ) if isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( thePlayer ) ), aclGetGroup( "Admin" ) ) then local x, y, z = getElementPosition( thePlayer ) for k, i in ipairs ( getElementsByType( "player" ) ) do if not i == thePlayer then setElementPosition( i, x+math.random( 1, 4 ), y+math.random( 1, 4 ), z + 0.8, true ) end end end end )
Recommended Posts