iiDr..!#FA[N]TA,<3 Posted November 9, 2017 Share Posted November 9, 2017 (edited) سلام عليكم ورحمة الله تعالى وبركاته كيفكم ان شاء الله بخير , أليوم صممت لوحة شراء صحة بس مشكل مو راضية تضغط أكوآد كلنت : GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 243, 381, 435, "[ Buy Hetlah v1.0 ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEFEFE") guiSetVisible(GUIEditor.window[1] , false) GUIEditor.label[1] = guiCreateLabel(0.19, 0.07, 0.67, 0.03, "مرحبآ بك ف لوحة الرئيسية ! لشراء الصحة", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 253, 113, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.label[2] = guiCreateLabel(102, 63, 161, 15, "قم بضغط على الزر ادناه لشراءه", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 23, 252, 0) GUIEditor.label[3] = guiCreateLabel(129, 110, 111, 15, "سعر الصحة $ 200 $", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 251, 243, 0) GUIEditor.label[4] = guiCreateLabel(10, 177, 361, 15, "_________________________________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(148, 270, 82, 45, "Buy", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBF300") GUIEditor.label[5] = guiCreateLabel(110, 406, 149, 15, "Programming By FANTA2017-2018", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-small") guiLabelSetColor(GUIEditor.label[5], 251, 243, 0) end ) addEventHandler ( "onClientGUIClick" , root , function ( ) if ( source == aButton ) then if ( getPlayerMoney ( ) >= 200 ) then setElementHealth ( localPlayer , 100 ) end end end ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F7", "down", OpenWin) أدري أنو ععندي مششكل لكني سويت كل شيء , :\ وسلام عليكم Edited November 9, 2017 by iiDr..!#FA[N]TA,<3 Link to comment
1337.Ibrahim Posted November 9, 2017 Share Posted November 9, 2017 (edited) شيك على سطر 32 Edited November 9, 2017 by Talis Link to comment
Doffy Posted November 9, 2017 Share Posted November 9, 2017 (edited) --Client GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 243, 381, 435, "[ Buy Hetlah v1.0 ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEFEFE") guiSetVisible(GUIEditor.window[1] , false) GUIEditor.label[1] = guiCreateLabel(0.19, 0.07, 0.67, 0.03, "مرحبآ بك ف لوحة الرئيسية ! لشراء الصحة", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 253, 113, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.label[2] = guiCreateLabel(102, 63, 161, 15, "قم بضغط على الزر ادناه لشراءه", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 23, 252, 0) GUIEditor.label[3] = guiCreateLabel(129, 110, 111, 15, "سعر الصحة $ 200 $", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 251, 243, 0) GUIEditor.label[4] = guiCreateLabel(10, 177, 361, 15, "_________________________________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(148, 270, 82, 45, "Buy", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBF300") GUIEditor.label[5] = guiCreateLabel(110, 406, 149, 15, "Programming By FANTA2017-2018", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-small") guiLabelSetColor(GUIEditor.label[5], 251, 243, 0) end ) addEventHandler ( "onClientGUIClick" , root , function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Buy;Health", localPlayer) end end ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F7", "down", OpenWin) --Server addEvent("Buy;Health", true) addEventHandler("Buy;Health",root, function( ) if getPlayerMoney(source) > 199 then takePlayerMoney(source,200) setElementHealth(source, 200) playSoundFrontEnd(source, 20) else outputChatBox("You don't have enough money", source, 255,0,0,true) end end) Edited November 9, 2017 by #Himoo 1 Link to comment
iiDr..!#FA[N]TA,<3 Posted November 9, 2017 Author Share Posted November 9, 2017 تمـت الافائدة .. يغلق ! 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now