Jump to content

تم الافاده من قبل Manster


MeZo999

Recommended Posts

هاذا الكود كود بوابه ابيه نفسه بس لجروب معين

Door3 = createObject(980,1522.4000244141,2773.1000976563,12.39999961853,0,0,90) 
markerDoor3 = createMarker(1522.5999755859,2773.3000488281,10.699999809265,30,'cylinder',9,0,0,0,0) 
  
addEventHandler('onMarkerHit',markerDoor3, 
function ( hitElement ) 
     moveObject(Door3,1000,-2559.8000488281,-2166.1000976563,38.799999237061) 
end 
) 
  
addEventHandler('onMarkerLeave',markerDoor3, 
function ( hitElement ) 
     moveObject(Door3,1000,-2560.3999023438,-2165.1000976563,31.799999237061) 
end 
) 

هاذا الكود لماركر سيارات

local window = guiCreateWindow(353, 146, 323, 358, "Dz,jordan", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window,false) 
guiSetAlpha(window, 1.00) 
  
local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) 
guiGridListAddColumn(gridlist, "سيارات الجروب", 0.9) 
local button2 = guiCreateButton(29, 311, 68, 35, "اختيار", false, window) 
guiSetProperty(button2, "NormalTextColour", "ffff0000") 
local button = guiCreateButton(288, 25, 26, 22, "X", false, window) 
guiSetProperty(button, "NormalTextColour", "FFFF0000")     
local car = { 541,560 } 
  
for _,vehicle in ipairs (car) do 
local row = guiGridListAddRow ( gridlist ) 
guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
end 
  
addEventHandler("onClientGUIClick",button2,  
function ()  
local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if carxx == "" then return outputChatBox("مبروك السياره",255, 0, 0,true) end 
triggerServerEvent("carx",localPlayer,carxx)  
guiSetVisible(window,false) 
showCursor(false) 
end,false 
) 
  
------------------------------- 
local car = createMarker ( 2498.77856,-1652.11133,13.49579, "cylinder", 1.5, 255, 255, 255, 255 ) 
addEventHandler('onClientMarkerHit', car, 
function ( hitPlayer ) 
         if ( hitPlayer == localPlayer ) then 
         guiSetVisible ( window ,true ) 
        showCursor( true ) 
      guiSetInputEnabled(false) 
    end 
end 
) 
  
addEventHandler( "onClientGUIClick", button , 
function () 
    guiSetVisible(window,false) 
    showCursor(false,false) 
end 
) 

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

طبعأأ على مود الجروبات العقرب وشكرأأ مشكورني ما قصرتوو :D

Edited by Guest
Link to comment
Door3 = createObject(980,1522.4000244141,2773.1000976563,12.39999961853,0,0,90) 
markerDoor3 = createMarker(1522.5999755859,2773.3000488281,10.699999809265,30,'cylinder',9,0,0,0,0) 
  
addEventHandler('onMarkerHit',markerDoor3, 
function ( hitElement ) 
if ( getElementData(hitElement, "Group" ) == "اسم القروب" ) then 
moveObject(Door3,1000,-2559.8000488281,-2166.1000976563,38.799999237061) 
end 
end 
) 
  
addEventHandler('onMarkerLeave',markerDoor3, 
function ( hitElement ) 
     moveObject(Door3,1000,-2560.3999023438,-2165.1000976563,31.799999237061) 
end 
) 

Edit :

local window = guiCreateWindow(353, 146, 323, 358, "Dz,jordan", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window,false) 
guiSetAlpha(window, 1.00) 
  
local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) 
guiGridListAddColumn(gridlist, "سيارات الجروب", 0.9) 
local button2 = guiCreateButton(29, 311, 68, 35, "اختيار", false, window) 
guiSetProperty(button2, "NormalTextColour", "ffff0000") 
local button = guiCreateButton(288, 25, 26, 22, "X", false, window) 
guiSetProperty(button, "NormalTextColour", "FFFF0000")     
local car = { 541,560 } 
  
for _,vehicle in ipairs (car) do 
local row = guiGridListAddRow ( gridlist ) 
guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
end 
  
addEventHandler("onClientGUIClick",button2, 
function () 
local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if carxx == "" then return outputChatBox("مبروك السياره",255, 0, 0,true) end 
triggerServerEvent("carx",localPlayer,carxx) 
guiSetVisible(window,false) 
showCursor(false) 
end,false 
) 
  
------------------------------- 
local car = createMarker ( 2498.77856,-1652.11133,13.49579, "cylinder", 1.5, 255, 255, 255, 255 ) 
addEventHandler('onClientMarkerHit', car, 
function ( hitPlayer ) 
      if ( hitPlayer == localPlayer ) then 
        if ( getElementData(hitPlayer, "Group" ) == "اسم القروب" ) then 
         guiSetVisible ( window ,true ) 
        showCursor( true ) 
      guiSetInputEnabled(false) 
     end 
  end 
end 
) 
  
addEventHandler( "onClientGUIClick", button , 
function () 
    guiSetVisible(window,false) 
    showCursor(false,false) 
end 
) 

Link to comment
هاذا الكود كود بوابه ابيه نفسه بس لجروب معين

Door3 = createObject(980,1522.4000244141,2773.1000976563,12.39999961853,0,0,90) 
markerDoor3 = createMarker(1522.5999755859,2773.3000488281,10.699999809265,30,'cylinder',9,0,0,0,0) 
  
addEventHandler('onMarkerHit',markerDoor3, 
function ( hitElement ) 
     moveObject(Door3,1000,-2559.8000488281,-2166.1000976563,38.799999237061) 
end 
) 
  
addEventHandler('onMarkerLeave',markerDoor3, 
function ( hitElement ) 
     moveObject(Door3,1000,-2560.3999023438,-2165.1000976563,31.799999237061) 
end 
) 

هاذا الكود لماركر سيارات

local window = guiCreateWindow(353, 146, 323, 358, "Dz,jordan", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window,false) 
guiSetAlpha(window, 1.00) 
  
local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) 
guiGridListAddColumn(gridlist, "سيارات الجروب", 0.9) 
local button2 = guiCreateButton(29, 311, 68, 35, "اختيار", false, window) 
guiSetProperty(button2, "NormalTextColour", "ffff0000") 
local button = guiCreateButton(288, 25, 26, 22, "X", false, window) 
guiSetProperty(button, "NormalTextColour", "FFFF0000")     
local car = { 541,560 } 
  
for _,vehicle in ipairs (car) do 
local row = guiGridListAddRow ( gridlist ) 
guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
end 
  
addEventHandler("onClientGUIClick",button2,  
function ()  
local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if carxx == "" then return outputChatBox("مبروك السياره",255, 0, 0,true) end 
triggerServerEvent("carx",localPlayer,carxx)  
guiSetVisible(window,false) 
showCursor(false) 
end,false 
) 
  
------------------------------- 
local car = createMarker ( 2498.77856,-1652.11133,13.49579, "cylinder", 1.5, 255, 255, 255, 255 ) 
addEventHandler('onClientMarkerHit', car, 
function ( hitPlayer ) 
         if ( hitPlayer == localPlayer ) then 
         guiSetVisible ( window ,true ) 
        showCursor( true ) 
      guiSetInputEnabled(false) 
    end 
end 
) 
  
addEventHandler( "onClientGUIClick", button , 
function () 
    guiSetVisible(window,false) 
    showCursor(false,false) 
end 
) 

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

طبعأأ على مود الجروبات العقرب وشكرأأ مشكورني ما قصرتوو :D

مشكووووووووووووووووووووووووووررررررررر وربي كفووووووووو

Link to comment
addEventHandler("onPlayerWasted", root, 
    function() 
        if getElementData(source, "gang") == "اسم القروب" then 
            setTimer(function(source) 
               setElementPosition(source, x,y,z) 
                setCameraTarget(source) 
              fadeCamera(source, true) 
            end, 2500, 1, source) 
        end 
    end 
) 

Link to comment
addEventHandler("onPlayerWasted", root, 
    function() 
        if getElementData(source, "gang") == "اسم القروب" then 
            setTimer(function(source) 
               setElementPosition(source, x,y,z) 
                setCameraTarget(source) 
              fadeCamera(source, true) 
            end, 2500, 1, source) 
        end 
    end 
) 

يوحج خطأ في السطر 3 شيل gang وحط Group

حط Group

اول مره اصحح سكربت هههههههههههه ولله يلا مشكوووووور حبيبي وعضرني

الكود بعد التعديل ليصبخ

addEventHandler("onPlayerWasted", root, 
    function() 
        if getElementData(source, "Group") == "911" then 
            setTimer(function(source) 
               setElementPosition(source, 1480.51379,2775.68652,10.82031) 
                setCameraTarget(source) 
              fadeCamera(source, true) 
            end, 2500, 1, source) 
        end 
    end 
) 

Link to comment
مشكوووووووووووووور يا ملك المبرمجين

حياك الله ^_^

ممكن اخر طلب

بدي كود بيت لجروب معين و وماركر عند الباب من الخارج وباب من الداخل ممكن يكون لجروب معين يويكون البيت الكبير

الي في مهمه الصفراء الي في حرب العصابات

Link to comment
معليش كل شي جاهز مايصير

اعتمد على نفسك

او سو ماركر وضيف ذا

  
addEventHandler('onMarkerHit',nameMarker, 
function () 
وسو هنا التحقق و الرقم البيت 
  

سو الي تقدر عليه وراح اساعدك

ولله العضيم حاولة ساعدوني !

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...