POWR Posted January 10, 2013 Share Posted January 10, 2013 سلام عليكم اهم شيء كلكم بخير ابي كود لما يجي وقت التحميل الكمرا تكون على منظر حتى ينتهي العب بعدين تروح لحدثيات العب وتلعب الله لايهنكم Link to comment
3NAD Posted January 10, 2013 Share Posted January 10, 2013 setCameraMatrix setCameraTarget Link to comment
Tete omar Posted January 10, 2013 Share Posted January 10, 2013 setCameraMatrix setCameraTarget ^ سيرفر + كلنت v onClientResourceStart triggerServerEvent Link to comment
POWR Posted January 10, 2013 Author Share Posted January 10, 2013 setCameraMatrix setCameraTarget _________ ^ سيرفر + كلنت v onClientResourceStart triggerServerEvent setCameraMatrix setCameraTarget تسلممون بس ممكن احد يصلحه لي Link to comment
MR.S3D Posted January 10, 2013 Share Posted January 10, 2013 ------------------ ---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
POWR Posted January 11, 2013 Author Share Posted January 11, 2013 ------------------ ---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
MR.S3D Posted January 11, 2013 Share Posted January 11, 2013 ------------------ ---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
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