Jump to content

[ تمت الإفادة ]x طلب:الله لايهنكم


POWR

Recommended Posts

سلام عليكم

اهم شيء كلكم بخير

ابي كود

لما يجي وقت التحميل الكمرا تكون على منظر حتى ينتهي العب بعدين تروح لحدثيات العب وتلعب

الله لايهنكم

Link to comment
  
  
------------------   
---Server    
----------------- 
  
  
addEventHandler("onPlayerJoin", getRootElement(), ---عند دخول اللاعب الى السيرفر 
    function() 
        fadeCamera(source, true, 5) 
        setCameraMatrix(source, 3038.77295, -3002.36108, 111.67200, 3134.92310, -3012.41260, 86.09600) 
    end   
) 
  
addEvent('spawn', true)  
addEventHandler('spawn', root, 
    function()   
        IdSkin = 46 --رقم الشخصية 
        local x, y, z = 55.179416656494, 453.06640625, 3.7078123092651  -- احداثيات لما يخلص تحميل اللاعب 
        spawnPlayer ( source,x, y, z, 0, IdSkin, 0, 1) 
        setCameraTarget(source, source) 
        showChat(source, true)       
        setTimer ( fadeCamera, 50, 1, source,false, 1 ) 
        setTimer ( fadeCamera, 100, 1, source,true, 3 )  
    end 
) 
     
------------------   
---Client    
----------------- 
  
addEventHandler("onClientResourceStart",getResourceRootElement(),function() 
    triggerServerEvent("spawn",getLocalPlayer())  ---اذا خلص تحميل اللاعب يرسل امر للسيرفر  
end) 
  
  

Link to comment
  
  
------------------   
---Server    
----------------- 
  
  
addEventHandler("onPlayerJoin", getRootElement(), ---عند دخول اللاعب الى السيرفر 
    function() 
        fadeCamera(source, true, 5) 
        setCameraMatrix(source, 3038.77295, -3002.36108, 111.67200, 3134.92310, -3012.41260, 86.09600) 
    end   
) 
  
addEvent('spawn', true)  
addEventHandler('spawn', root, 
    function()   
        IdSkin = 46 --رقم الشخصية 
        local x, y, z = 55.179416656494, 453.06640625, 3.7078123092651  -- احداثيات لما يخلص تحميل اللاعب 
        spawnPlayer ( source,x, y, z, 0, IdSkin, 0, 1) 
        setCameraTarget(source, source) 
        showChat(source, true)       
        setTimer ( fadeCamera, 50, 1, source,false, 1 ) 
        setTimer ( fadeCamera, 100, 1, source,true, 3 )  
    end 
) 
     
------------------   
---Client    
----------------- 
  
addEventHandler("onClientResourceStart",getResourceRootElement(),function() 
    triggerServerEvent("spawn",getLocalPlayer())  ---اذا خلص تحميل اللاعب يرسل امر للسيرفر  
end) 
  
  

تسلم والله ما انسى صنيعك :)

Link to comment
  
  
------------------   
---Server    
----------------- 
  
  
addEventHandler("onPlayerJoin", getRootElement(), ---عند دخول اللاعب الى السيرفر 
    function() 
        fadeCamera(source, true, 5) 
        setCameraMatrix(source, 3038.77295, -3002.36108, 111.67200, 3134.92310, -3012.41260, 86.09600) 
    end   
) 
  
addEvent('spawn', true)  
addEventHandler('spawn', root, 
    function()   
        IdSkin = 46 --رقم الشخصية 
        local x, y, z = 55.179416656494, 453.06640625, 3.7078123092651  -- احداثيات لما يخلص تحميل اللاعب 
        spawnPlayer ( source,x, y, z, 0, IdSkin, 0, 1) 
        setCameraTarget(source, source) 
        showChat(source, true)       
        setTimer ( fadeCamera, 50, 1, source,false, 1 ) 
        setTimer ( fadeCamera, 100, 1, source,true, 3 )  
    end 
) 
     
------------------   
---Client    
----------------- 
  
addEventHandler("onClientResourceStart",getResourceRootElement(),function() 
    triggerServerEvent("spawn",getLocalPlayer())  ---اذا خلص تحميل اللاعب يرسل امر للسيرفر  
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...