CRoW,,# Posted May 8, 2013 Share Posted May 8, 2013 ابي ادمج ذا المود 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
فاّرس Posted May 8, 2013 Share Posted May 8, 2013 المود الي فوق وش فايدته؟؟ + وليه ما تدمجه في اي مكان فاضي؟ Link to comment
CRoW,,# Posted May 8, 2013 Author Share Posted May 8, 2013 المود الي فوق وش فايدته؟؟+ وليه ما تدمجه في اي مكان فاضي؟ يخلي الشاشة من ع الجنب سودة +حاولت ما يضبط Link to comment
فاّرس Posted May 8, 2013 Share Posted May 8, 2013 انا جربت المود ما تصير الشاشه سودآ ؟ Link to comment
CRoW,,# Posted May 8, 2013 Author Share Posted May 8, 2013 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
فاّرس Posted May 8, 2013 Share Posted May 8, 2013 ^ سو مثل ما قالك يزن + سوها تآيمر بحيث مثلا بعد 5 دقائق تروح , Link to comment
CRoW,,# Posted May 8, 2013 Author Share Posted May 8, 2013 ^ سو مثل ما قالك يزن+ سوها تآيمر بحيث مثلا بعد 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
yazan Posted May 8, 2013 Share Posted May 8, 2013 اخوي فهمني طلبك + المودات يلي تبيها تندمج قلبت تحزير قول ذا المود يعمل كذا ابي اخليه مع هذى الكود وعمله Link to comment
فاّرس Posted May 8, 2013 Share Posted May 8, 2013 ^ اساسا المود مو شغال الشاشه ما تجي سودآ ! Link to comment
CRoW,,# Posted May 8, 2013 Author Share Posted May 8, 2013 ! ابيه الكميرا وهي تتحرك تصير من ع الجوانب سودة Link to comment
кιηg-αвα∂у Posted May 8, 2013 Share Posted May 8, 2013 موضحها لك في الديسكربيشن للمود exports.widescreen:showPlayerWideScreen(widescreenSize, timeToFadeOut, [ alpha ]) اوضحهم لك exports.widescreen:showPlayerWideScree -- showPlayerWideScree يتصل بالمود ويسوي وضيفة widescreenSize -- الحجم الي تبيه يكون اسود يعني مثلآ نص الشاشة timeToFadeOut -- الوقت الي ينتهي فيه الون الأسود alpha -- الوضح للون الأسود خلها 255 بالنسبة للتايم حط الوقت الي ينتهي فيه التحرك يعني احسبها وشوف المدة كم تقريباً وحطها Link to comment
CRoW,,# Posted May 8, 2013 Author Share Posted May 8, 2013 سويتهه بسس ما ضبط 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
кιηg-αвα∂у Posted May 8, 2013 Share Posted May 8, 2013 سويتهه بسس ما ضبط 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
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 موب راضي يضبط ركبت المود وشغلتهه بعدين حطيت الكود حق الاتصال في اول الكود حقي exports.widescreen:showPlayerWideScreen(50, 10000, 255) Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 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
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 ما ضبط +ما اتوقع انه خربان Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 وش يثبت لك انه مو خربآن ؟ انا مجربه حتى كذا , addEventHandler("onClientResourceStart",resourceRoot, function() exports.widescreen:showPlayerWideScreen(50, 10000, 255) end) برضو ما ضبط == خربآن Link to comment
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 طيب انا شفت ذي الحركة بسيرفر بسسول Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 سو صوره وسوي تآيمر, dxDrawRectangle او تقدر تستخدم Link to comment
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 طيب مافي حل +مابي صورة ما تزبط +اي واحد عنده كود الي يخلي الشاشة سودة من ع الجوانب Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 طيب مافي حل +مابي صورة ما تزبط +اي واحد عنده كود الي يخلي الشاشة سودة من ع الجوانب سو صوره وسوي تآيمر, dxDrawRectangle او تقدر تستخدم Link to comment
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 طيب مافي حل +مابي صورة ما تزبط +اي واحد عنده كود الي يخلي الشاشة سودة من ع الجوانب سو صوره وسوي تآيمر, dxDrawRectangle او تقدر تستخدم احس ما عندكك سالفةة ذذ Link to comment
فاّرس Posted May 9, 2013 Share Posted May 9, 2013 للمرة الثالثه اقولك dxDrawRectangle والشرهه علي ارد عليك ذذ الا شوف مافي احد عطاك وجه Link to comment
CRoW,,# Posted May 9, 2013 Author Share Posted May 9, 2013 خلاص ضبط المود الاول https://community.multitheftauto.com/ind ... ls&id=6974 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