myonlake Posted November 2, 2011 Posted November 2, 2011 (edited) Hello once again, I am trying to make a script that changes your camera position all the time, but this one has bad arguments. -- Player on-join function onJoin() fadeCamera(source, true, 5) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox("Welcome to testing server.", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) setCameraMatrix(source, -1687, 1313, 25, -1529, 1235, 1) setTimer(function() fadeCamera(source, false, 3) end, 6000, 1) setTimer(camera_1, 7000, 1, source) end addEventHandler("onPlayerJoin", getRootElement(), onJoin) -- Camera 1 function camera_1() fadeCamera(source, true, 3) setCameraMatrix(source, -1469, 760, 59, -1610, 832, 8 ) setTimer(camera_2, 7000, 1, source) setTimer(function() fadeCamera(source, false, 3) end, 6000, 1) end -- Camera 2 function camera_2() fadeCamera(source, true, 3) setCameraMatrix(source, -1852, 1100, 168, -1080, 454, 2) setTimer(camera_1, 7000, 1, source) setTimer(function() fadeCamera(source, false, 3) end, 6000, 1) end Edited November 2, 2011 by Guest If I helped you, please click the like button on the right Thanks!
Castillo Posted November 2, 2011 Posted November 2, 2011 Can you post the part of the script which executes camera_1 and camera_2? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
myonlake Posted November 2, 2011 Author Posted November 2, 2011 Edited. If I helped you, please click the like button on the right Thanks!
Castillo Posted November 2, 2011 Posted November 2, 2011 -- Player on-join function onJoin() fadeCamera(source, true, 5) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) outputChatBox("Welcome to testing server.", source, 255, 255, 255, true) outputChatBox(" ", source, 255, 255, 255, true) setCameraMatrix(source, -1687, 1313, 25, -1529, 1235, 1) setTimer(function() fadeCamera(source, false, 3) end, 6000, 1) setTimer(camera_1, 7000, 1, source) end addEventHandler("onPlayerJoin", getRootElement(), onJoin) -- Camera 1 function camera_1(player) fadeCamera(player, true, 3) setCameraMatrix(player, -1469, 760, 59, -1610, 832, 8 ) setTimer(camera_2, 7000, 1, player) setTimer(function() fadeCamera(player, false, 3) end, 6000, 1) end -- Camera 2 function camera_2(player) fadeCamera(player, true, 3) setCameraMatrix(player, -1852, 1100, 168, -1080, 454, 2) setTimer(camera_1, 7000, 1, player) setTimer(function() fadeCamera(player, false, 3) end, 6000, 1) end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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