Jump to content

thx to Mr.Pres[T]ege|!.. Xmlتصحيح كود


Recommended Posts

-- 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...