Jump to content

widescreen


Recommended Posts

ابي ادمج ذا المود

https://community.multitheftauto.com/ind ... ls&id=6974

بذا الكود

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.00011 
 y = y + 0.1000 
 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) 
 if cameraX == newCamPosX and cameraY == newCamPosY and cameraZ == newCamPosZ and lookX == newCamLookX and lookY == newCamLookY and lookZ == newCamLookZ then 
 removeEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
 end 
 addEventHandler("onClientRender", getRootElement(), moveCamera) 
  
 end 
  
  
cameraMoveSoft(-2681,1408,70, -2681,2122, 100, 0, 0, 0, 0, 200000, 0, "Linear") 

^لاني بصراحة ماعرفت للمود الي فوق

Link to comment

Usage:

- Client-side:

exports.widescreen:showPlayerWideScreen(widescreenSize, timeToFadeOut, [ alpha ])

- Server-side:

exports.widescreen:showPlayerWideScreen(thePlayer, widescreenSize, timeToFadeOut, [ alpha ])

Required arguments:

- Client-side:

float widescreenSize, int timeToFadeOut (miliseconds).

- Server-side:

player thePlayer, float widescreenSize, int timeToFadeOut (miliseconds).

Optional argument:

int Alpha (widescreen alpha).

Example (client-side):

exports.widescreen:showPlayerWideScreen(110, 10000, 255)

عنده طريقةة @:

Link to comment
^ سو مثل ما قالك يزن

+ سوها تآيمر بحيث مثلا بعد 5 دقائق تروح ,

ابي ادمج ذا المود

https://community.multitheftauto.com/ind ... ls&id=6974

بذا الكود

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.00011 
 y = y + 0.1000 
 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) 
 if cameraX == newCamPosX and cameraY == newCamPosY and cameraZ == newCamPosZ and lookX == newCamLookX and lookY == newCamLookY and lookZ == newCamLookZ then 
 removeEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
 end 
 addEventHandler("onClientRender", getRootElement(), moveCamera) 
  
 end 
  
  
cameraMoveSoft(-2681,1408,70, -2681,2122, 100, 0, 0, 0, 0, 200000, 0, "Linear") 

^لاني بصراحة ماعرفت للمود الي فوق

وش دخل التايمر ابي ادمجهه @/:

يعني والكميرا تتحرك

!يجي

Link to comment

موضحها لك في الديسكربيشن للمود

exports.widescreen:showPlayerWideScreen(widescreenSize, timeToFadeOut, [ alpha ]) 

اوضحهم لك

exports.widescreen:showPlayerWideScree -- showPlayerWideScree يتصل بالمود ويسوي وضيفة 
widescreenSize -- الحجم الي تبيه يكون اسود يعني مثلآ نص الشاشة 
timeToFadeOut -- الوقت الي ينتهي فيه الون الأسود 
alpha -- الوضح للون الأسود خلها 255 

بالنسبة للتايم

حط الوقت الي ينتهي فيه التحرك

يعني احسبها وشوف المدة كم تقريباً وحطها

Link to comment

سويتهه بسس ما ضبط

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.00011 
 y = y + 0.1000 
 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) 
 if cameraX == newCamPosX and cameraY == newCamPosY and cameraZ == newCamPosZ and lookX == newCamLookX and lookY == newCamLookY and lookZ == newCamLookZ then 
 removeEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
 end 
 addEventHandler("onClientRender", getRootElement(), moveCamera) 
  
 end 
  
  
cameraMoveSoft(-2681,1408,70, -2681,2122, 100, 0, 0, 0, 0, 200000, 0, "Linear") 
local screenWidth, screenHeight = guiGetScreenSize() 
local y = screenHeight - screenHeight/4 
local height = screenHeight/4 
local wideScreenSize, alpha = 0, 0 
local fadeOutSpeed = 7 
local widescreen = {} 
  
addEvent("showWideScreenServer", true) 
  
local fadeOutTimer 
function showPlayerWideScreen(50, 10000, 255) 
    if ( type(wideScreenSize) == "number" and wideScreenSize <= height ) then 
        if ( alpha and alpha >= 255 ) then return false end 
        -- Show the Wide Screen 
        widescreen.values = {y = y, size = (height - wideScreenSize), alpha = alpha or 250} 
        addEventHandler("onClientRender", root, createWideScreen) 
    else 
        return false 
    end 
     
    if ( not timeToFadeOut ) then return false end 
    -- Fade out the Wide Screen 
    local timeToFadeOut = tonumber(timeToFadeOut) 
    fadeOutTimer = setTimer( function() 
            addEventHandler("onClientPreRender", root, fadeOutWideScreen) 
        end, timeToFadeOut, 1 
    ) 
    return true 
end 
  
function createWideScreen() 
        y = widescreen.values["y"] 
        wideScreenSize = widescreen.values["size"] 
        alpha = widescreen.values["alpha"] 
     
        dxDrawRectangle(0, 0, screenWidth, height - wideScreenSize, tocolor(0, 0, 7, alpha), true) 
        dxDrawRectangle(0, y + wideScreenSize, screenWidth, height - wideScreenSize, tocolor(0, 0, 7, alpha), true) 
end 
  
function fadeOutWideScreen() 
    widescreen.values["y"] = widescreen.values["y"] + fadeOutSpeed 
    height = height - fadeOutSpeed 
    destroyWidescreen() 
end 
  
function destroyWidescreen() 
    if ( height < 1 ) then 
        if removeEventHandler("onClientPreRender", root, fadeOutWideScreen) then 
            removeEventHandler("onClientRender", root, createWideScreen) 
            y = screenHeight - screenHeight/4 
            height = screenHeight/4 
        end 
    end 
end 
  
addEventHandler( "showWideScreenServer", root,  
function (wideScreenSize, timeToFadeOut, alpha) 
    if ( type(wideScreenSize) == "number" and type(timeToFadeOut) == "number" ) then 
        if wideScreenSize <= height then 
            showPlayerWideScreen(wideScreenSize, timeToFadeOut, alpha) 
        else 
            outputDebugString("widescreen: The size limit is "..height, 2, 220, 0, 0) 
        end 
    end 
end 
) 

Link to comment
سويتهه بسس ما ضبط
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.00011 
 y = y + 0.1000 
 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) 
 if cameraX == newCamPosX and cameraY == newCamPosY and cameraZ == newCamPosZ and lookX == newCamLookX and lookY == newCamLookY and lookZ == newCamLookZ then 
 removeEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
 end 
 addEventHandler("onClientRender", getRootElement(), moveCamera) 
  
 end 
  
  
cameraMoveSoft(-2681,1408,70, -2681,2122, 100, 0, 0, 0, 0, 200000, 0, "Linear") 
local screenWidth, screenHeight = guiGetScreenSize() 
local y = screenHeight - screenHeight/4 
local height = screenHeight/4 
local wideScreenSize, alpha = 0, 0 
local fadeOutSpeed = 7 
local widescreen = {} 
  
addEvent("showWideScreenServer", true) 
  
local fadeOutTimer 
function showPlayerWideScreen(50, 10000, 255) 
    if ( type(wideScreenSize) == "number" and wideScreenSize <= height ) then 
        if ( alpha and alpha >= 255 ) then return false end 
        -- Show the Wide Screen 
        widescreen.values = {y = y, size = (height - wideScreenSize), alpha = alpha or 250} 
        addEventHandler("onClientRender", root, createWideScreen) 
    else 
        return false 
    end 
     
    if ( not timeToFadeOut ) then return false end 
    -- Fade out the Wide Screen 
    local timeToFadeOut = tonumber(timeToFadeOut) 
    fadeOutTimer = setTimer( function() 
            addEventHandler("onClientPreRender", root, fadeOutWideScreen) 
        end, timeToFadeOut, 1 
    ) 
    return true 
end 
  
function createWideScreen() 
        y = widescreen.values["y"] 
        wideScreenSize = widescreen.values["size"] 
        alpha = widescreen.values["alpha"] 
     
        dxDrawRectangle(0, 0, screenWidth, height - wideScreenSize, tocolor(0, 0, 7, alpha), true) 
        dxDrawRectangle(0, y + wideScreenSize, screenWidth, height - wideScreenSize, tocolor(0, 0, 7, alpha), true) 
end 
  
function fadeOutWideScreen() 
    widescreen.values["y"] = widescreen.values["y"] + fadeOutSpeed 
    height = height - fadeOutSpeed 
    destroyWidescreen() 
end 
  
function destroyWidescreen() 
    if ( height < 1 ) then 
        if removeEventHandler("onClientPreRender", root, fadeOutWideScreen) then 
            removeEventHandler("onClientRender", root, createWideScreen) 
            y = screenHeight - screenHeight/4 
            height = screenHeight/4 
        end 
    end 
end 
  
addEventHandler( "showWideScreenServer", root,  
function (wideScreenSize, timeToFadeOut, alpha) 
    if ( type(wideScreenSize) == "number" and type(timeToFadeOut) == "number" ) then 
        if wideScreenSize <= height then 
            showPlayerWideScreen(wideScreenSize, timeToFadeOut, alpha) 
        else 
            outputDebugString("widescreen: The size limit is "..height, 2, 220, 0, 0) 
        end 
    end 
end 
) 

انت دامج الموداتت ؟

الكود الي عطيتك يتصل على المود مايحتاج تدمج الأكواد

احذف كودات المود وبدلهم بكود الأتصال

ولآزم يكون المود شغال لما تجرب

Link to comment

exports.widescreen:showPlayerWideScreen(50, 10000, 255) 
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.00011 
 y = y + 0.1000 
 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) 
 if cameraX == newCamPosX and cameraY == newCamPosY and cameraZ == newCamPosZ and lookX == newCamLookX and lookY == newCamLookY and lookZ == newCamLookZ then 
 removeEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
 end 
 addEventHandler("onClientRender", getRootElement(), moveCamera) 
 end 
cameraMoveSoft(-2681,1408,70, -2681,2122, 100, 0, 0, 0, 0, 200000, 0, "Linear") 

إن ما اشتغل فإن المود الاساسي خربآن

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