iPrestege Posted May 2, 2013 Share Posted May 2, 2013 ok مافية غير حل بسيط نسوي تآيمر؟ بعد كم تبية يسوي سباون .. واعذرني ماكتشفت الى الان لية مايسوي ! .. Link to comment
iPrestege Posted May 2, 2013 Share Posted May 2, 2013 -- Client Side -- addEvent("setcol",true) addEventHandler("setcol",getRootElement(), function () cameraMoveSoft(1797.35229,842.19122,10.63315, 1797.35229,842.19122, 10.63315, 0, 0, 0, 0, 999999, 0, "Linear") setTimer( function ( ) triggerServerEvent("Send",localPlayer) removeEventHandler("onClientRender", getRootElement(), moveCamera) end,5000,1) xmlFileHandler(guiCheckBoxGetSelected(GUIEditor_Checkbox[1])) guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) end ) function cameraMoveSoft(camPosX, camPosY, camPosZ, newCamPosX, newCamPosY, newCamPosZ, camLookX, camLookY, camLookZ, newCamLookX, newCamLookY, newCamLookZ, typeCameraMove) local x = 0 local y = 0 function moveCamera() x = x + 0.0001 y = y + 0.0001 local cameraX, cameraY, cameraZ = interpolateBetween(camPosX, camPosY, camPosZ, newCamPosX, newCamPosY, newCamPosZ, x, "Linear") local lookX, lookY, lookZ = interpolateBetween(camLookX, camLookY, camLookZ, newCamLookX, newCamLookY, newCamLookZ, y, "Linear") setCameraMatrix(cameraX, cameraY, cameraZ, lookX, lookY, lookZ) end addEventHandler("onClientRender", getRootElement(), moveCamera) end 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