Jump to content

مساعده


Recommended Posts

السلام عليكم و رحمة الله و بركاته

انا عندي كود ال هو

هذا

dx = false 
skin = {{46,"skin1"},{124,"skin2"},{217,"skin3"},{230,"skin4"}} 
num = 1 
place = { 
    {"Na5el",2040.5595703125,1424.5876464844,38.590599060059,2040.6915283203,1425.5034179688,38.211277008057,2086.59619,1472.00696,10.82031}, 
    {"LoLo",2335.73145,1282.56128,99.271652335.73145,1282.56128,99.271652335.73145,1282.56128,99.27165}, 
}  
--[[ 
1-   1968.5285644531,1423.9068603516,78.983596801758,1969.2951660156,1423.9925537109,78.347183227539 
2-   2085.4680175781,1434.1806640625,13.457900047302,2086.2380371094,1433.9248046875,12.873436927795 
     2088.16284,1433.28540,10.81252 
]]--[[ 
    2086.59619,1472.00696,10.82031 
    2040.5595703125,1424.5876464844,38.590599060059,2040.6915283203,1425.5034179688,38.211277008057 
---------------------------------------------------------------------------------------------------------------- 
    2109.34326,1549.89893,10.82031 
    2049.8608398438,1610.3602294922,41.466400146484,2050.4504394531,1609.6793212891,41.032138824463 
]] 
function Show() 
    smoothMoveCamera(3878.8999023438,-1613.0999755859,17.1, 3878.9900488281,-1607.4000244141,16.6) 
    ped = createPed(skin[1][1],-1790.93274,568.01068,332.80469,90) 
    ped = createPed(skin[1][1],-1790.93274,568.01068,332.80469,90) 
    bindKey("arrow_l","down",left) 
    bindKey("arrow_r","down",right) 
    bindKey("enter","down",enter) 
    text = skin[1][2] 
end 
function left() 
    if num == 1 then 
        num = #skin 
    else 
        num = num - 1 
    end 
    setElementModel(ped,skin[num][1]) 
    text = skin[num][2] 
    playSoundFrontEnd(32) 
end 
  
function right() 
    if num == #skin then 
        num = 1 
    else 
        num = num + 1 
    end 
    setElementModel(ped,skin[num][1]) 
    text = skin[num][2] 
    playSoundFrontEnd(32) 
end 
  
function enter() 
    playSoundFrontEnd(33) 
    destroyElement(ped) 
    unbindKey("arrow_l") 
    unbindKey("arrow_r") 
    unbindKey("enter") 
    setElementData(localPlayer,"skin",skin[num][1]) 
    num = 1 
    text = place[num][1] 
    setCameraMatrix(place[num][2],place[num][3],place[num][4],place[num][5],place[num][6],place[num][7]) 
    dx = true 
    bindKey("arrow_l","down",Pleft) 
    bindKey("arrow_r","down",Pright) 
    bindKey("enter","down",Penter) 
end 
  
  
addEventHandler("onClientRender",root, 
    function () 
        local size = {guiGetScreenSize()} 
        if dx == true then 
            dxDrawText("\n( " .. text .. " )",1,0,size[1] + 1,size[2],tocolor(0,0,0,255),3,"default-bold","center","top",false,false,false,true) 
            dxDrawText("\n( " .. text .. " )",0,0,size[1],size[2],tocolor(255,0,0,255),3,"default-bold","center","top",false,false,false,true) 
            dxDrawText("\n( " .. text .. " )",0,0,size[1],size[2],tocolor(255,0,0,255),3,"default-bold","center","top",false,false,false,true) 
        end 
    end 
) 
  
  
  
function Pleft() 
    if num == 1 then 
        num = #place 
    else 
        num = num - 1 
    end 
    text = place[num][1] 
    setCameraMatrix(place[num][2],place[num][3],place[num][4],place[num][5],place[num][6],place[num][7]) 
    playSoundFrontEnd(32) 
end 
  
function Pright() 
    if num == #place then 
        num = 1 
    else 
        num = num + 1 
    end 
    text = place[num][1] 
    setCameraMatrix(place[num][2],place[num][3],place[num][4],place[num][5],place[num][6],place[num][7]) 
    playSoundFrontEnd(32) 
end 
  
function Penter() 
    playSoundFrontEnd(33) 
    unbindKey("arrow_l") 
    unbindKey("arrow_r") 
    unbindKey("enter") 
    dx = false 
    text = "" 
    setPlayerXYZ(place[num][8],place[num][9],place[num][10]) 
    triggerServerEvent("SpawnPlayer",localPlayer) 
end 
  
fileDelete("Client.lua") 

كيف اغير الاماكن حقت الكميرا

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