Jump to content

Dr.Xen

Members
  • Posts

    412
  • Joined

  • Last visited

Everything posted by Dr.Xen

  1. ابي الكود في كود انا نسيت في حطيت اكتب فيها الكتابة ولمن اركب تجي كتابة من فوق
  2. السلام عليكم ورحمة الله وبركاته ... الزبدة ابي الكود الي تجي لــ giumassege تجي من فوق وأبي المود لأهنتوا.. وشكرآ
  3. شوف كذا Maarker = createColCuboid(-168.23093, -697.7157, 134.95308, 2, 2, 2) addEventHandler("onClientMarkerHit", Maarker, function(hitPlayer) if (hitPlayer == localPlayer) then if (getElementData(hitPlayer, "Group") == "ARMY") then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end end, false) addEventHandler("onClientColShapeHit", Maarker, function(leftPlayer) if (leftPlayer == localPlayer) then if (getElementData(liftPlayer, "Group") == "ARMY") then if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end end end, false)
  4. Maarker = createColCuboid(-168.23093, -697.7157, 134.95308, 2, 2, 2) addEventHandler("onClientMarkerHit", Maarker, function(hitPlayer) if (hitPlayer == localPlayer) then if (getElementData(hitPlayer, "Group") == "ARMY") then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end end, false) addEventHandler("onClientMarkerLeave", Maarker, function(leftPlayer) if (leftPlayer == localPlayer) then if (getElementData(liftPlayer, "Group") == "ARMY") then if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end end end, false) لو ادخل مكان الكول ماتفتح اللوحة
  5. طيب اشكرك ... ،، ابي حل لماركر تفتح من فوق لمن اعدي ...
  6. كذا؟ function onGuiClick() if (source == GUIEditor_Button[1]) then local element = getPedOccupiedVehicle ( source ) setElementPosition(element, 1536.5,-1687.9000244141,13.5) setPedRotation(element, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[2]) then setElementPosition(element,1470.9000244141,-1045.5,23.799999237061) setPedRotation(element, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[3]) then setElementPosition(element, 1361.9000244141,-1264.3000488281,13.39999961853) setPedRotation(element, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[4]) then setElementPosition(element, 571.29998779297,-1221.6999511719,17.5,0,0,293.5) setPedRotation(element, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end addEventHandler("onClientGUIClick", guiRoot, onGuiClick)
  7. ابي ينتقل بالسيارة !!
  8. السلام عليكم ورحمة الله وبركاته ... ابي تعديل كود : ينتقل ولو راكب سيارة function onGuiClick() if (source == GUIEditor_Button[1]) then setElementPosition(localPlayer, 1536.5,-1687.9000244141,13.5) setPedRotation(localPlayer, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[2]) then setElementPosition(localPlayer,1470.9000244141,-1045.5,23.799999237061) setPedRotation(localPlayer, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[3]) then setElementPosition(localPlayer, 1361.9000244141,-1264.3000488281,13.39999961853) setPedRotation(localPlayer, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif (source == GUIEditor_Button[4]) then setElementPosition(localPlayer, 571.29998779297,-1221.6999511719,17.5,0,0,293.5) setPedRotation(localPlayer, 91.98) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end addEventHandler("onClientGUIClick", guiRoot, onGuiClick)
  9. خلاص ت حل .. شكرآ لك..
  10. مو رابط واحد .. انا اجيب عدة روابط واحط باللوحة علشانن تشتغل
  11. مو مشغل .. انا احط رابط في اللوحة وتشغل
  12. local colshape = createColSphere ( ... ) addEventHandler ( "onClientColShapeHit", resourceRoot, function ( element ) if ( source == colshape ) then if ( element == getLocalPlayer ( ) ) then if ( isElement ( Sound ) ) then destroyElement ( Sound ) end setSoundVolume ( sound, 200 ) setSoundMaxDistance(sound, 200) end end end end ) كذا ^^؟؟
  13. انا مابي احط صوت من الجهاز ابيه من النت شف الكود : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Edit = {} GUIEditor_Label = {} vehicleId = {603,587,559,541,451,429,515,402,470,561,562,411,565,503,431,522,571} AircraftId = {487,469} local Url2 = dxCreateTexture("3.png") addEventHandler( "onClientRender", root, function ( ) local x, y, z =2198.6999511719,432,9.6999998092651 dxDrawMaterialLine3D(x, y, z+0.6, x, y, z+5.6, Url2, 1, tocolor(255,255,255,255)) end ) abady1 = createMarker( 2138.6999511719,504.79998779297,9.8000001907349, 'cylinder', 1.7000000476837, 255, 0, 0, 255 ) abady2 = createMarker( 2138.8000488281,494.89999389648,9.8000001907349, 'cylinder', 1.7000000476837, 255, 0, 0, 255 ) mArkSound = createMarker( 2198.6999511719,432,9.6999998092651, 'cylinder', 1.7000000476837, 225, 0, 0, 255 ) local xx,yy = guiGetScreenSize() local xx = xx - 396 local yy = yy - 161 wnd = guiCreateWindow(xx/2,yy/2,396,161,".: Sound System :. [Leg]",false) guiSetAlpha(wnd,1) guiWindowSetSizable(wnd,false) GUIEditor_Edit[1] = guiCreateEdit(10,22,328,24,"",false,wnd) GUIEditor_Label[1] = guiCreateLabel(340,22,48,24,"الرابط ",false,wnd) addEvent('okS', true) addEventHandler('okS', root, function(url) sound = playSound3D( url, 2198.6999511719,432,9.6999998092651 ) if sound then setSoundVolume ( sound, 150 ) setSoundMaxDistance(sound, 150) end end ) addEvent('okStop', true) addEventHandler('okStop', root, function() destroyElement( sound ) end ) addEvent('ptf', true) addEventHandler('ptf', root, function() if not isElement( sound ) then outputChatBox('لم يتم تشغيل الصوت', 255, 0, 0, false) return end if isSoundPaused(sound) then setSoundPaused(sound, false) outputChatBox(' تم استئناف الصوت ', 0, 255, 0, false) else setSoundPaused(sound, true) outputChatBox(' تم ايقاف الصوت مؤقت ', 0, 255, 0, false) end end ) GUIEditor_Button[8] = guiCreateButton(11,80,117,29,"اغلاق الوحة",false,wnd) GUIEditor_Button[5] = guiCreateButton(274,65,102,26,"تشغيل الصوت",false,wnd) GUIEditor_Button[6] = guiCreateButton(166,65,102,26,"ايقاف الصوت",false,wnd) GUIEditor_Button[7] = guiCreateButton(169,108,207,28,"ايقاف \ استئناف الصوت مؤقت",false,wnd) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[5] ) then url = guiGetText( GUIEditor_Edit[1] ) if url == '' or url == ' ' then outputChatBox('تأكد من وضع رابط صحيح', 255, 0, 0, false) return end if isElement( sound ) then outputChatBox('تم تشغيل الصوت من قبل', 255, 0, 0, false) return end triggerServerEvent('sRoot', localPlayer,url) elseif ( source == GUIEditor_Button[6] ) then if not isElement( sound ) then outputChatBox('لم يتم تشغيل الصوت', 255, 0, 0, false) return end triggerServerEvent('stop', localPlayer) elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent('sptf', localPlayer) elseif ( source == GUIEditor_Button[8] ) then setPedFrozen ( localPlayer, false ) guiSetVisible(wnd,false) showCursor( false ) end end ) guiSetVisible(wnd,false) local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) end for i,id2 in ipairs ( AircraftId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id2 ), false, false ) end addEventHandler ("onClientMarkerHit", root, function( player ) if getElementType(player) == "player" and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == "Leg" then if ( source == abady1 ) then local x,y,z = getElementPosition( localPlayer ) if z < 114 and z > 100 then end setPedFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) elseif ( source == abady2 ) then local x,y,z = getElementPosition( localPlayer ) if z < 114 and z > 100 then end setPedFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) elseif ( source == mArkSound ) then local xm, ym, zm = getElementPosition( localPlayer ) if not isPedInVehicle( localPlayer ) then if getPlayerSerial( localPlayer ) == 'F77D370EB766D26F55412E515564A903' then setPedFrozen ( localPlayer, true ) guiSetVisible(wnd,true) showCursor( true ) else outputChatBox('لوحة تشغيل خاصة لـ أنس', 255, 0, 0, false) end end end end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setPedFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('giveCarOrAir', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setPedFrozen ( localPlayer, false ) showCursor( false ) end end ) addEvent("warningSound", true) addEventHandler("warningSound", localPlayer, function() if isElement(warningSound) then stopSound(warningSound) end warningSound = playSound("warning.mp3") end ) سطر 29 تبع الصوت
  14. زاحف ابي لو دخل كول شيب .. ض1
  15. كل ترآب انت وخشتك
  16. السلام عليكم ورحمة الله وبركاته .. اخبارركمم ... اهنيكم ل الدرااسةةة .. ض1 ممكن تعديل للــكود ابيه لو احد دخل الكول شيب يشتغل الصوت if sound then setSoundVolume ( sound, 200 ) setSoundMaxDistance(sound, 200) end end )
  17. الخطأ اللي بالصوره مو موجود بآكوادك اللي بالمنتدى. ---=========لوحة سيارات GUIEditor_Grid = {} GUIEditor_Button = {} Vehicle = guiCreateWindow(453,218,302,379,".:[ Panel Vehicle For [XRG] ]:.",false) guiSetVisible(Vehicle,false) guiSetAlpha (Vehicle, 1) GUIEditor_Button[5] = guiCreateButton (0.0795,0.8575,0.4007,0.1135,"x[ oK ]x",true,Vehicle) GUIEditor_Button[4] = guiCreateButton (0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) local col = guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.9) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) CarsTable = { { "Bullet" }, { "Infernus" }, { "Flash" }, { "Sultan" }, { "Bus" }, { "NRG-500" }, { "Banshee" }, { "Elegy" }, { "Cheetah" }, { "Turismo" }, { "Maverick" }, { "News Chopper" }, { "Sparrow" }, { "Banshee" }, { "Elegy" }, { "Cheetah" }, { "Turismo" }, { "Maverick" }, { "News Chopper" }, { "Sparrow" }, { "Mountain Bike" }, { "Jester" }, { "Kart" }, { "Banshee" }, { "Stretch" }, { "Hotring Racer 3" }, { "Vortex" }, { "StuntPlane" }, { "Remington" }, { "Monster 3" }, { "Dodo" }, { "Dumper" }, { "RC Bandit" }, { "Shamal" }, { "Uranus" }, } for i, v in ipairs ( CarsTable ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, v[1], false, true ) end function onWaste() guiSetVisible(Vehicle, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), onWaste) function OpenWindowsCar () guiSetVisible(Vehicle, true) showCursor(true) end addEvent("OpenWindowsWSR", true) addEventHandler("OpenWindowsWSR", getLocalPlayer(), OpenWindowsCar ) function createTheChoosenCar () local row = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if row and row >= 0 then guiSetVisible(Vehicle, false) showCursor(false) triggerServerEvent("CreateCarWSR", localPlayer, guiGridListGetItemText(GUIEditor_Grid[1], row, col)) end end addEventHandler("onClientGUIClick", GUIEditor_Button[5], createTheChoosenCar , false) addEventHandler("onClientGUIClick",GUIEditor_Button[4], function () guiSetVisible(Vehicle,false) showCursor(false) end,false) addEvent("NssoR",true) addEventHandler("NssoR",root, function() setPedCanBeKnockedOffBike ( getLocalPlayer(), false ) end) addEvent("d5wl",true) addEventHandler("d5wl",root, function() setPedCanBeKnockedOffBike ( getLocalPlayer(), true ) end) addEvent("Tool",true) addEventHandler("Tool",root, function() setPedCanBeKnockedOffBike ( getLocalPlayer(), false ) end) addEvent("oooo",true) addEventHandler("oooo",root, function() setPedCanBeKnockedOffBike ( getLocalPlayer(), true ) end) الكود ^
  18. في كودي الثاني ...
  19. شف الحين تمام .. لاكن لو سويت ملف جديد ماتشتغل الأزرار GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Edit = {} GUIEditor_Label = {} mArkSound = createMarker(1489.4000244141,541,22.39999961853, 'cylinder', 1.7000000476837, 225, 0, 0, 255 ) local xx,yy = guiGetScreenSize() local xx = xx - 396 local yy = yy - 161 wnd = guiCreateWindow(xx/2,yy/2,396,161,".: Sound System :. [Pro]",false) guiSetAlpha(wnd,1) guiWindowSetSizable(wnd,false) GUIEditor_Edit[1] = guiCreateEdit(10,22,328,24,"",false,wnd) GUIEditor_Label[1] = guiCreateLabel(340,22,48,24,"الرابط ",false,wnd) addEvent('okS', true) addEventHandler('okS', root, function(url) sound = playSound3D( url,1489.4000244141,541,22.39999961853) if sound then setSoundVolume ( sound, 400 ) setSoundMaxDistance(sound, 400) end end ) addEvent('okStop', true) addEventHandler('okStop', root, function() destroyElement( sound ) end ) addEvent('ptf', true) addEventHandler('ptf', root, function() if not isElement( sound ) then outputChatBox('لم يتم تشغيل الصوت', 255, 0, 0, false) return end if isSoundPaused(sound) then setSoundPaused(sound, false) outputChatBox(' تم استئناف الصوت ', 0, 255, 0, false) else setSoundPaused(sound, true) outputChatBox(' تم ايقاف الصوت مؤقت ', 0, 255, 0, false) end end ) GUIEditor_Button[8] = guiCreateButton(11,80,117,29,"اغلاق الوحة",false,wnd) GUIEditor_Button[5] = guiCreateButton(274,65,102,26,"تشغيل الصوت",false,wnd) GUIEditor_Button[6] = guiCreateButton(166,65,102,26,"ايقاف الصوت",false,wnd) GUIEditor_Button[7] = guiCreateButton(169,108,207,28,"ايقاف \ استئناف الصوت مؤقت",false,wnd) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[5] ) then url = guiGetText( GUIEditor_Edit[1] ) if url == '' or url == ' ' then outputChatBox('تأكد من وضع رابط صحيح', 255, 0, 0, false) return end if isElement( sound ) then outputChatBox('تم تشغيل الصوت من قبل', 255, 0, 0, false) return end triggerServerEvent('sRoot', localPlayer,url) elseif ( source == GUIEditor_Button[6] ) then if not isElement( sound ) then outputChatBox('لم يتم تشغيل الصوت', 255, 0, 0, false) return end triggerServerEvent('stop', localPlayer) elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent('sptf', localPlayer) elseif ( source == GUIEditor_Button[8] ) then setPedFrozen ( localPlayer, false ) guiSetVisible(wnd,false) showCursor( false ) end end ) guiSetVisible(wnd,false) addEventHandler ("onClientMarkerHit", root, function( player ) if getElementType(player) == "player" and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == "[Pro]" then if ( source == mArkSound ) then local xm, ym, zm = getElementPosition( localPlayer ) if not isPedInVehicle( localPlayer )then if getPlayerSerial( localPlayer ) == 'F77D370EB766D26F55412E515564A903' then setPedFrozen ( localPlayer, true ) guiSetVisible(wnd,true) showCursor( true ) else outputChatBox('لوحة تشغيل خاصة لـ أنس', 255, 0, 0, false) end end end end end )
  20. يطلع كلام برتقالي .. + المشكلة لو غيرت الإحداثيات الماركر وضغطت على الأزرار ما تشتغل
  21. لو ضغطت زر مايصير شي ض1
×
×
  • Create New...