Jump to content

CRoW,,#

Members
  • Posts

    646
  • Joined

  • Last visited

Everything posted by CRoW,,#

  1. addCommandHandler("xd", function () local x1,y1,z1, = getWaterColor () setClipboard(" "..x1..","..y1..","..z1.." ") end ) كذا صح ؟ + مدري وش كنت اسوي بدونكك
  2. يب اعرف سويتهه مع لون السماء لكن المشكلة معرف وش اللون الاصلي
  3. طيب اذا ضغطت ع الزر حق تغير لون المويه مرة ثانية ووقف التلوين ابيهه يرجع للونه الاصلي
  4. اها توني افهم ذذ خلاص تم الافادة يعطيك العافية
  5. كودك ما ضبط لكن كود برسستيج ضبط
  6. تسسسسسسسسسسلم ضبط بس تقدر تشرح لي من وين جات ذي الوظائف لان الكود تغير 360 درجة صرت ماعرف فيهه شي
  7. خلاص مابي السيارة ابيهه اذا ضغط ع نفس الزر يلغي الوظيفةة
  8. طيب اذا بغيت اعكس العملية بحيث اذا ضغط ع الزر مرة ثانية يوقف انا سويتهه كذا بس ما ضبط addEventHandler("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then theTimer = setTimer(function() setSkyGradient(math.random(255),math.random(255), math.random(255), math.random(255),math.random(255),math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[2] ) then if ( isTimer ( theTimer ) ) then killTimer ( theTimer ) elseif ( source == GUIEditor_Button[1] ) then theT = setTimer(function() setWaterColor(math.random(255),math.random(255), math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[1] ) then if ( isTimer ( theT ) ) then killTimer ( theT ) elseif ( source == GUIEditor_Button[3] ) then uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then theC = setTimer(function() local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end, 350,0) elseif ( source == GUIEditor_Button[3] ) then if ( isTimer ( theC ) ) then killTimer ( theC) end end end )
  9. elseif ( source == GUIEditor_Button[3] ) then theC = setTimer(function() local uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) end, 350,0) setVehicleColor( uVehicle, r, g, b )
  10. تأكد من احداثياتك خلاص طلع بس السيارة تتلون ممثل الفلاش
  11. خلاص ضبط بس الزر حق تلوين السيارة ماهوب راضي يظهر
  12. برضو ما ضبط wnd = guiCreateWindow(0.2537,0.2183,0.4812,0.4967,"",true) guiSetAlpha(wnd,1) GUIEditor_Label[5] = guiCreateLabel(131,28,154,45,"Color System",false,wnd) GUIEditor_Button[1] = guiCreateButton(9,105,111,35,"تلوين البحر",false,wnd) GUIEditor_Button[2] = guiCreateButton(235,105,111,35,"تلوين السماء",false,wnd) GUIEditor_Button[3] = guiCreateButton(130,197,111,35,"تلوين الموتر",true,wnd) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then theTimer = setTimer(function() setSkyGradient(math.random(255),math.random(255), math.random(255), math.random(255),math.random(255),math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[1] ) then theT = setTimer(function() setWaterColor(math.random(255),math.random(255), math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[3] ) then local uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end end end )
  13. ههههههههههههههههههههههـــ قويةة ذذ
  14. wnd = guiCreateWindow(0.2537,0.2183,0.4812,0.4967,"",true) guiSetAlpha(wnd,1) GUIEditor_Label[5] = guiCreateLabel(131,28,154,45,"Color System",false,wnd) GUIEditor_Button[1] = guiCreateButton(9,105,111,35,"تلوين البحر",false,wnd) GUIEditor_Button[2] = guiCreateButton(235,105,111,35,"تلوين السماء",false,wnd) GUIEditor_Button[3] = guiCreateButton(130,197,111,35,"تلوين الموتر",false,wnd) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) addEventHandler("onClientGUIClick", root, function ( ) if source == GUIEditor_Button[2] then theTimer = setTimer(function() setSkyGradient(math.random(255),math.random(255), math.random(255), math.random(255),math.random(255),math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[1] ) then theT = setTimer(function() setWaterColor(math.random(255),math.random(255), math.random(255)) end, 350,0) elseif ( source == GUIEditor_Button[3] ) then function uPlayer() if isPedInVehicle( uPlayer ) then local uVehicle = getPedOccupiedVehicle( uPlayer ) if uVehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( uVehicle, r, g, b ) end end ) وش الخطا بذا الكود
  15. طيب انا شفت ذي الحركة بسيرفر بسسول
  16. ما ضبط +ما اتوقع انه خربان
  17. موب راضي يضبط ركبت المود وشغلتهه بعدين حطيت الكود حق الاتصال في اول الكود حقي exports.widescreen:showPlayerWideScreen(50, 10000, 255)
  18. سويتهه بسس ما ضبط 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 )
  19. ! ابيه الكميرا وهي تتحرك تصير من ع الجوانب سودة
  20. وش دخل التايمر ابي ادمجهه @/: يعني والكميرا تتحرك !يجي
  21. 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) عنده طريقةة @:
  22. يخلي الشاشة من ع الجنب سودة +حاولت ما يضبط
  23. ابي ادمج ذا المود 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") ^لاني بصراحة ماعرفت للمود الي فوق
×
×
  • Create New...