Jump to content

طلب اكواد


Recommended Posts

  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

مكتبة؟

-- # Client Side : 
  
local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( myMarker, 188, 0, 0, 255 )   
GUIEditor = { 
button = {}, 
window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible ( GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) 
GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) 
GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) 
GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) 
GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) 
end 
) 
  
 addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, 
 function ( ) 
if ( source == GUIEditor.button[1] ) then 
setWorldSpecialPropertyEnabled ( "aircars", true ) 
elseif ( source == GUIEditor.button[4] ) then 
setWorldSpecialPropertyEnabled ( "aircars", false ) 
elseif ( source == GUIEditor.button[3] ) then 
setWorldSpecialPropertyEnabled ( "hovercars", true ) 
elseif ( source == GUIEditor.button[2] ) then 
setWorldSpecialPropertyEnabled ( "hovercars", false ) 
elseif source == GUIEditor.button[7] then 
guiSetVisible (wnd,false) 
showCursor (false) 
elseif ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[7] then 
guiSetVisible(GUIEditor.window[1] , false) 
end 
end 
) 
  
addEventHandler("onClientResourceStart",resourceRoot , 
function() 
     guiV = guiGetVisible (GUIEditor.window[1] ) 
     if guiV == true then 
     playSound("intro.mp3" ) 
     end 
end) 
Link to comment
ههههه اخوي اقصد انا الاكواد ذي احطها بفلاش مشان للمستقبل فهمتني؟؟

والمهم بسوي مود لحالي وارد لك خبر خليك معنا ربع ساعه بس هههه

تحطها في فلاش؟ O_o

. أعوذ بالله

Link to comment

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

local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( marker, 158, 0, 0, 215 ) 
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
    end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[1] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[6] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم أيقاف الطيران") 
          end 
    end 
 ) 
  
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[5] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", true ) 
outputChatBox("تم تشغيل المشي فوق الماء") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[4] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", false ) 
outputChatBox("تم أيقاف المشي فوق الماء") 
          end 
    end 
 ) 
  
elseif ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[3] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("هنا الكلام") 
end 
end 
) 
  
elseif ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[2] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("تم أعطاءك دم ") 
end 
end 
) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == GUIEditor.button[7]then 
   guiSetVisible(GUIEditor.window[1], false) 
outputChatBox("تم أعطاءك درع") 
   end 
end) 
  
addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 
  

وش السبب الماركر ما يبين

Link to comment

local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( marker, 158, 0, 0, 215 ) 
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
    end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[1] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[6] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم أيقاف الطيران") 
          end 
    end 
 ) 
  
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[5] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", true ) 
outputChatBox("تم تشغيل المشي فوق الماء") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[4] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", false ) 
outputChatBox("تم أيقاف المشي فوق الماء") 
          end 
    end 
 ) 
  
 addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
if ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[3] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("هنا الكلام") 
elseif ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[2] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("تم أعطاءك دم ") 
         end 
    end 
 ) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == GUIEditor.button[7]then 
   guiSetVisible(GUIEditor.window[1], false) 
outputChatBox("تم أعطاءك درع") 
   end 
end) 
  
addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 
  
Link to comment

local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( marker, 158, 0, 0, 215 ) 
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
        guiSetVisible( GUIEditor.window[1],false ) 
    end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[1] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[6] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم أيقاف الطيران") 
          end 
    end 
 ) 
  
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[5] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", true ) 
outputChatBox("تم تشغيل المشي فوق الماء") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[4] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", false ) 
outputChatBox("تم أيقاف المشي فوق الماء") 
          end 
    end 
 ) 
  
 addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
if ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[3] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("هنا الكلام") 
elseif ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[2] then 
guiSetVisible(GUIEditor.window[1] , false) 
outputChatBox("تم أعطاءك دم ") 
         end 
    end 
 ) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == GUIEditor.button[7]then 
   guiSetVisible(GUIEditor.window[1], false) 
outputChatBox("تم أعطاءك درع") 
   end 
end) 
  
addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 

أنت حذفت كود فتح انافذة بزر وخليتها لكـ تفتح يوم تلمس الماركر ذذ تبيني أرجعها بزر؟

Link to comment

بطرح لك كل مشاكله وانت صلحها

المشكله الاولى لما اختار اعطاء دم او درع يوخذهم وتقفل اللوحه تلقائي

اما الباقي يوخذهم وما تقفل اللوحه تلقائي

وش المشكله هنا؟؟

ثانيا لما ادخل الماركر واخلص شراء اسوي اغلاق يبقى الماوس فاتح وما يسكر عشان اقدر اتحرك

ويا ريت تقول لي وش تعدل مشان اعرف

Link to comment

local marker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( marker, 158, 0, 0, 215 ) 
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
        guiSetVisible( GUIEditor.window[1],false ) 
    end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[1] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[6] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم أيقاف الطيران") 
_Close ( ) 
          end 
    end 
 ) 
  
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[5] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", true ) 
outputChatBox("تم تشغيل المشي فوق الماء") 
_Close ( ) 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[4] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", false ) 
outputChatBox("تم أيقاف المشي فوق الماء") 
_Close ( ) 
          end 
    end 
 ) 
  
 addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
if ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
_Close ( ) 
elseif ( source == GUIEditor.button[6]  ) then 
_Close ( ) 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[3] then 
_Close ( ) 
outputChatBox("هنا الكلام") 
elseif ( source == GUIEditor.button[5]) then 
_Close ( ) 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
_Close ( ) 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[2] then 
_Close ( ) 
outputChatBox("تم أعطاءك دم ") 
         end 
    end 
 ) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == GUIEditor.button[7]then 
   _Close ( ) 
   outputChatBox("تم أعطاءك درع") 
   end 
end) 
  
 function _Close( ) 
 guiSetVisible(GUIEditor.window[1], false) 
 showCursor ( false ) 
    end 
addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 
Edited by Guest
Link to comment
اخوي وش استفيد ابي بس تقولي وش الاخطاء كانت ومن كم سطر الى اي سطر معلش غلبتك لين اخلص امه لانه بتعلم عليه

لإخفاء المآوس showCursor الأخطاء هي أنكـ ما أستخدمت الوظيفة

وعشآن كودكـ شوي طويل و الأزرار كثيرة سويت وظيفة تساعدة في أغلاقة النافذة وحطيت لها اسم عشان لو أبي أستخدمها

هاذي هي الوظيفة

function _Close( ) 
 guiSetVisible(GUIEditor.window[1], false) 
 showCursor ( false ) 
end 
Link to comment
local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
    setMarkerColor ( myMarker, 158, 0, 0, 215 ) 
    GUIEditor = { 
        button = {}, 
        window = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
            guiSetVisible ( GUIEditor.window[1], false) 
      
            GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
            GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
            GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
            GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
            GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
            GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
            GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
            guiSetVisible( GUIEditor.window[1],false ) 
        end 
    ) 
      
    addEventHandler ("onClientMarkerHit",myMarker, 
     function (element) 
      if (element) == localPlayer then 
        guiSetVisible (GUIEditor.window[1],true) 
        showCursor ( true ) 
      end 
     end,false 
      ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
    if ( source == GUIEditor.button[1] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", true ) 
    outputChatBox("تم تشغيل الطيران") 
    elseif ( source == GUIEditor.button[2]) then 
    triggerServerEvent ( "setarmor", localPlayer) 
    outputChatBox ( "تم اعطائك درع" ) 
    elseif ( source == GUIEditor.button[3]  ) then 
    triggerServerEvent ( "setahealth",localPlayer) 
    outputChatBox ( "تم اعطائك دم 200" ) 
    elseif ( source == GUIEditor.button[4] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", false ) 
    outputChatBox("تم أيقاف المشي فوق الماء") 
    elseif ( source == GUIEditor.button[5] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", true ) 
    outputChatBox("تم تشغيل المشي على الماء") 
    elseif ( source == GUIEditor.button[6] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", false ) 
    outputChatBox("تم أيقاف الطيران") 
    elseif ( source == GUIEditor.button[7] ) then 
    guiSetVisible ( GUIEditor.window[1], false) 
    showCursor ( false ) 
    end 
    end 
     ) 

Link to comment
local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
    setMarkerColor ( myMarker, 158, 0, 0, 215 ) 
    GUIEditor = { 
        button = {}, 
        window = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
            guiSetVisible ( GUIEditor.window[1], false) 
      
            GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
            GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
            GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
            GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
            GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
            GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
            GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
            guiSetVisible( GUIEditor.window[1],false ) 
        end 
    ) 
      
    addEventHandler ("onClientMarkerHit",myMarker, 
     function (element) 
      if (element) == localPlayer then 
        guiSetVisible (GUIEditor.window[1],true) 
        showCursor ( true ) 
      end 
     end,false 
      ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
    if ( source == GUIEditor.button[1] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", true ) 
    outputChatBox("تم تشغيل الطيران") 
    elseif ( source == GUIEditor.button[2]) then 
    triggerServerEvent ( "setarmor", localPlayer) 
    outputChatBox ( "تم اعطائك درع" ) 
    elseif ( source == GUIEditor.button[3]  ) then 
    triggerServerEvent ( "setahealth",localPlayer) 
    outputChatBox ( "تم اعطائك دم 200" ) 
    elseif ( source == GUIEditor.button[4] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", false ) 
    outputChatBox("تم أيقاف المشي فوق الماء") 
    elseif ( source == GUIEditor.button[5] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", true ) 
    outputChatBox("تم تشغيل المشي على الماء") 
    elseif ( source == GUIEditor.button[6] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", false ) 
    outputChatBox("تم أيقاف الطيران") 
    elseif ( source == GUIEditor.button[7] ) then 
    guiSetVisible ( GUIEditor.window[1], false) 
    showCursor ( false ) 
    end 
    end 
     ) 

WTF?

Link to comment
local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) 
setMarkerColor ( marker, 158, 0, 0, 215 ) 
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) 
        GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) 
        GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])     
        guiSetVisible( GUIEditor.window[1],false ) 
    end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[1] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران") 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[6] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم أيقاف الطيران") 
_Close ( ) 
          end 
    end 
 ) 
  
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[5] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", true ) 
outputChatBox("تم تشغيل المشي فوق الماء") 
_Close ( ) 
          end 
    end 
 ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[4] ) then 
  setWorldSpecialPropertyEnabled ( "hovercars", false ) 
outputChatBox("تم أيقاف المشي فوق الماء") 
_Close ( ) 
          end 
    end 
 ) 
  
 addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
if ( source == GUIEditor.button[5]) then 
triggerServerEvent ( "setarmor", localPlayer) 
_Close ( ) 
elseif ( source == GUIEditor.button[6]  ) then 
_Close ( ) 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[3] then 
_Close ( ) 
outputChatBox("هنا الكلام") 
elseif ( source == GUIEditor.button[5]) then 
_Close ( ) 
triggerServerEvent ( "setarmor", localPlayer) 
elseif ( source == GUIEditor.button[6]  ) then 
_Close ( ) 
triggerServerEvent ( "setahealth",localPlayer) 
elseif source == GUIEditor.button[2] then 
_Close ( ) 
outputChatBox("تم أعطاءك دم ") 
         end 
    end 
 ) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == GUIEditor.button[7]then 
   _Close ( ) 
   outputChatBox("تم أعطاءك درع") 
   end 
end) 
  
 function _Close( ) 
 guiSetVisible(GUIEditor.window[1], false) 
 showCursor ( false ) 
    end 
addEventHandler ("onClientMarkerHit",myMarker, 
 function (element) 
  if (element) == localPlayer then 
    guiSetVisible (GUIEditor.window[1],true) 
    showCursor ( true ) 
         end 
    end,false 
  ) 

موب معرف الماركر بالسطر 2

+

رتبت له الكود

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