Alexs Posted April 1, 2012 Posted April 1, 2012 ¿Alguien esta aburrido y quiere probarlo?mtasa://188.77.34.142:22003 me apunto
iFoReX Posted April 1, 2012 Posted April 1, 2012 ¿Alguien esta aburrido y quiere probarlo?mtasa://188.77.34.142:22003 me apunto a mi ya me ta cargando
Carlossg Posted April 1, 2012 Author Posted April 1, 2012 addEventHandler ( "onPlayerJoin", root, function ( ) local randomPlayer = getRandomPlayer ( ) local x, y, z, lx, ly, lz, wex, wey = getCameraMatrix( randomPlayer ) setCameraMatrix ( source, x, y, z, lx, ly, lz, wex, wey ) end ) WARNING: [gameplay]\Camera\camera.lua:5: Bad argument @ 'setCameraMatrix'
Carlossg Posted April 2, 2012 Author Posted April 2, 2012 Sí, anoser que haya tan mala suerte que haya cogido al que ha entrado...
Carlossg Posted April 2, 2012 Author Posted April 2, 2012 addEventHandler ( "onPlayerJoin", root, function ( ) local randomPlayer = getRandomPlayer ( ) local x, y, z = getElementPosition( randomPlayer ) if randomPlayer == source then outputChatBox ( "Sorry", source) else outputChatBox ( "Good job") end setCameraMatrix ( source, x, y, z) end ) He visto que con el GetCameraMatrix, no funciona sin haberlo puesto antes y he usado getElemenPosition, pero no funciona.
Edikosh998 Posted April 2, 2012 Posted April 2, 2012 Che y no probastes con setCameraTarget https://wiki.multitheftauto.com/wiki/SetCameraTarget Fijate si esto anda addEventHandler ( "onPlayerJoin", root, function ( ) local randomPlayer = getRandomPlayer ( ) if randomPlayer == source then outputChatBox ( "Sorry", source) else outputChatBox ( "Good job") end setCameraTarget( source,randomPlayer) end )
Carlossg Posted April 2, 2012 Author Posted April 2, 2012 mtasa://188.77.34.142:22003 Por si alguien quiere probarlo.
Recommended Posts