Jump to content

طلب كودين


Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

bool guiSetVisible ( element guiElement, bool state )  

Required Arguments :

guiElement: the GUI element whose visibility is to be changed

state: the new visibility state

  
addEventHandler("onClientGUIClick",resourceRoot, 
function() 
   if source == btn then 
   guiSetVisible(win , false) 
   end 
end) 
  

Link to comment

addEventHandler("onClientGUIClick",resourceRoot,

function()

if source == btn then

GUIEditor.button[7](win , false)

end

end)

كذا تصير؟

+مشكور عفريت حليت مشكله الدم والدرع بس ما ينفع ازيد مثلن يعطي 200% زودت الرقم بالسيرفر ما تغير هههه

Edited by Guest
Link to comment
وش يعني النافذه ؟؟؟

يعني النافذة الرئيسه الي تفتح مثلن بأف 2؟

انت تقول زر يغلق النافذه

حط اسم النافذه اللي تبيه يغلقها يوم يظغطه

ومثل ماقالك اخوي نصور رح اقرا من 29 الى 31

Edited by Guest
Link to comment
تم تم ضبط شكرا عفريت+روجوا نسور

تيقا

guiGetVisible -- عشان تحقق ان النافذه انفتحت  
playSound --بدأ تشغيل الصوت  

  
addEventHandler("onClientResourceStart",resourceRoot , 
function() 
     guiV = guiGetVisible (النافذه ) 
     if guiV == true then  
     playSound("مسار الصوت" ) 
     end 
end) 
  

Edited by Guest
Link to comment

ما طلع صوت :(

الكلينت

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" )

end

end)

الميتا

Link to comment

+مشكور عفريت حليت مشكله الدم والدرع بس ما ينفع ازيد مثلن يعطي 200% زودت الرقم بالسيرفر ما تغير هههه

يب يمديك تخلي الدم 200

خل السيرفر كذا

  
      addEvent("setahealth",true) 
    addEventHandler("setahealth",root, 
    function() 
    setPedStat ( source, 24, 1000 ) 
    setElementHealth ( source, 200 ) 
    end) 
      
    addEvent("setarmor",true) 
    addEventHandler("setarmor",root, 
    function( ) 
    setPedArmor ( source, 100 ) 
    end) 

Link to comment
ما طلع صوت :(

الكلينت

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" )

end

end)

الميتا

playSound("intro" )

نسيت تحط الصيغه mp3

playSound("intro.mp3" )

Link to comment

تقصد بالكلنت؟؟

حطيتها وما تغير

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) 
  

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