Carlossg Posted April 2, 2012 Share Posted April 2, 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' Link to comment
Kenix Posted April 2, 2012 Share Posted April 2, 2012 http://bugs.mtasa.com/view.php?id=6964 Link to comment
Carlossg Posted April 3, 2012 Author Share Posted April 3, 2012 I'm now trying this: addEventHandler ( "onPlayerJoin", root, function ( ) local randomPlayer = getRandomPlayer ( ) if randomPlayer == source then outputChatBox ( "Sorry", source) else outputChatBox ( "Good job") end setCameraTarget( source,randomPlayer) end ) But it isn't working. Link to comment
Carlossg Posted April 3, 2012 Author Share Posted April 3, 2012 Meta: <meta> <info author="~KaRLoS~" name="Camera" version="1" type="script"/> <script src="camera.lua" type="server"/> </meta> I'm trying to use this whit race. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now