Jump to content

طلب كودين


Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 
    ) 
      
    bindKey("f2",'down', function (   ) 
    guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
    showCursor ( guiGetVisible ( GUIEditor.window[1])) 
    end ) 
      
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", true ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[4] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", false ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[3] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", true ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[2] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", false ) 
    end 
    end 
    ) 
      
    addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
    if source == GUIEditor.button[7] then 
    guiSetVisible (wnd,false) 
    showCursor (false) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, 
    function () 
    if ( source == GUIEditor.button[5]) then 
    triggerServerEvent ( "setarmor", localPlayer) 
    elseif ( source == GUIEditor.button[6]  ) then 
    triggerServerEvent ( "setahealth",localPlayer) 
    end 
    end 
    ) 
      
    addEventHandler("onClientGUIClick",resourceRoot, 
    function() 
    if 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) 

انت مستخدم حدث غلط جرب كذا

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 
    ) 
      
    bindKey("f2",'down', function (   ) 
    guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
    showCursor ( guiGetVisible ( GUIEditor.window[1])) 
    end ) 
      
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", true ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[4] ) then 
    setWorldSpecialPropertyEnabled ( "aircars", false ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[3] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", true ) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, function ( ) 
    if ( source == GUIEditor.button[2] ) then 
    setWorldSpecialPropertyEnabled ( "hovercars", false ) 
    end 
    end 
    ) 
      
    addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
    if source == GUIEditor.button[7] then 
    guiSetVisible (wnd,false) 
    showCursor (false) 
    end 
    end 
    ) 
      
    addEventHandler ("onClientGUIClick",resourceRoot, 
    function () 
    if ( source == GUIEditor.button[5]) then 
    triggerServerEvent ( "setarmor", localPlayer) 
    elseif ( source == GUIEditor.button[6]  ) then 
    triggerServerEvent ( "setahealth",localPlayer) 
    end 
    end 
    ) 
      
    addEventHandler("onClientGUIClick",resourceRoot, 
    function() 
    if source == GUIEditor.button[7] then 
    guiSetVisible(GUIEditor.window[1] , false) 
    end 
    end) 
      
    addEventHandler("onClientGUIClick",resourceRoot , 
    function() 
         guiV = guiGetVisible (GUIEditor.window[1] ) 
         if guiV == true then 
         playSound("intro.mp3" ) 
         end 
    end) 
  

Link to comment
اخوي تم اشتغل بس الاغنيه ما تشتغل الا اذا مثلن حط تشغيل الطيران ابيه لما يكبس اف 2 فهمت قصدي؟؟

+معلش تقولي وين الخطأ حقي مشان اتعلم من اخطائي :)

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 
) 
  
bindKey("f2",'down', function (   ) 
getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if getV == true then  
playSound("intro.mp3" ) 
end 
end ) 
  
  
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) 
  
  

معليش الخطأ كان من عندي عدلت اكوادك

جرب شوف

Edited by Guest
Link to comment

عدلت طال عمرك

كان كذا

addEventHandler("onClientResourceStart",resourceRoot , 
function() 
     guiV = guiGetVisible (GUIEditor.window[1] ) 
     if guiV == true then 
     playSound("intro.mp3" ) 
     end 
end) 

خليته بالبند كي

فأصبح

bindKey("f2",'down', function (   ) 
getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if getV == true then  
playSound("intro.mp3" ) 
end 
end ) 

تارراااااااااااااا

Link to comment
عدلت طال عمرك

كان كذا

addEventHandler("onClientResourceStart",resourceRoot , 
function() 
     guiV = guiGetVisible (GUIEditor.window[1] ) 
     if guiV == true then 
     playSound("intro.mp3" ) 
     end 
end) 

خليته بالبند كي

فأصبح

bindKey("f2",'down', function (   ) 
getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if getV == true then  
playSound("intro.mp3" ) 
end 
end ) 

تارراااااااااااااا

كودك يوم يشغل اللوحة يشتغل الصوت ويوم يطفي اللوحة يشتغل صوت ثاني يعني بيصير لخبطة ف الافضل يستخدم ذا

bindKey("f2","down", 
function () 
guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if not isElement(sound) then 
sound = playSound("intro.mp3", false) 
else 
stopSound(sound) 
end 
end 
end) 

Edited by Guest
Link to comment
عدلت طال عمرك

كان كذا

addEventHandler("onClientResourceStart",resourceRoot , 
function() 
     guiV = guiGetVisible (GUIEditor.window[1] ) 
     if guiV == true then 
     playSound("intro.mp3" ) 
     end 
end) 

خليته بالبند كي

فأصبح

bindKey("f2",'down', function (   ) 
getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if getV == true then  
playSound("intro.mp3" ) 
end 
end ) 

تارراااااااااااااا

كودك يوم يشغل اللوحة يشتغل الصوت ويوم يطفي اللوحة يشتغل صوت ثاني يعني بيصير لخبطة ف الافضل يستخدم ذا

bindKey("f2","down", 
function () 
guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if not isElement(sound) then 
sound = playSound("intro.mp3", false) 
else 
stopSound(sound) 
end 
end 
end) 

مشكور على المعلومه :]

كمان يقدر يخليها كذا

bindKey("f2",'down', function (   ) 
guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) 
showCursor ( guiGetVisible ( GUIEditor.window[1])) 
if guiGetVisible(GUIEditor.window[1]) == true then  
playSound("intro.mp3" ) 
end 
end ) 

انا كنت بسويها كذا لاكن نسيت احط المتغير ض1

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