i,xAhmed Posted February 26, 2016 Share Posted February 26, 2016 ابي فنكشنات تسوي ماركر بمكان محدد اذا دخلت الماركر ينقلك لمطعم مثلا Link to comment
#Basel Posted February 26, 2016 Share Posted February 26, 2016 marker = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,x,y,z) end ) Link to comment
#Mr.Rajo~,< Posted February 26, 2016 Share Posted February 26, 2016 setElementInterior Link to comment
i,xAhmed Posted February 26, 2016 Author Share Posted February 26, 2016 ابي الكود ذا يوم يضغط على صورة شكشوكة يسحب منه 5 $ addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor.label[2] then takePlayerMoney ( (5) ) outputChatBox("تم شراء صحن شكشوكة ( ب 5 $ )") end end ) Link to comment
Ahmed Ly Posted February 26, 2016 Share Posted February 26, 2016 ابي الكود ذا يوم يضغط على صورة شكشوكة يسحب منه 5 $ addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor.label[2] then takePlayerMoney ( (5) ) outputChatBox("تم شراء صحن شكشوكة ( ب 5 $ )") end end ) جرب ---------------------- -- Setting ---------------------- local Key = "F9" ---------------------- GUIEditor = { label = {}, staticimage = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 300) / 2, (screenH - 328) / 2, 300, 328, ":voice/images/voice.png", false) guiSetVisible(GUIEditor.staticimage[1],false); guiWindowSetSizable(GUIEditor.staticimage[1], false); guiSetAlpha(GUIEditor.staticimage[1], 0.70) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF125700 tr:FF125700 bl:FF125700 br:FF125700") GUIEditor.staticimage[2] = guiCreateStaticImage(48, 28, 215, 26, ":voice/images/voice.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[2], "ImageColours", "tl:FF807D7D tr:FF807D7D bl:FF807D7D br:FF807D7D") GUIEditor.label[1] = guiCreateLabel(1, 1, 214, 25, "بوفيه الامانة الذهبية", false, GUIEditor.staticimage[2]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 27, 69, 17) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.staticimage[3] = guiCreateStaticImage(10, 143, 107, 23, ":voice/images/voice.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[3], "ImageColours", "tl:FF0E5500 tr:FF0E5500 bl:FF0E5500 br:FF0E5500") GUIEditor.label[2] = guiCreateLabel(1, 0, 106, 23, "شكشوكة", false, GUIEditor.staticimage[3]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.staticimage[4] = guiCreateStaticImage(10, 255, 107, 23, ":voice/images/voice.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[4], "ImageColours", "tl:FF0E5500 tr:FF0E5500 bl:FF0E5500 br:FF0E5500") GUIEditor.label[3] = guiCreateLabel(1, 0, 106, 23, "سندوتش مشكل", false, GUIEditor.staticimage[4]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.staticimage[5] = guiCreateStaticImage(183, 143, 107, 23, ":voice/images/voice.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[5], "ImageColours", "tl:FF0E5500 tr:FF0E5500 bl:FF0E5500 br:FF0E5500") GUIEditor.label[4] = guiCreateLabel(1, 0, 106, 23, "كبدة على الصاج", false, GUIEditor.staticimage[5]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.staticimage[6] = guiCreateStaticImage(183, 255, 107, 23, ":voice/images/voice.png", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.staticimage[6], "ImageColours", "tl:FF0E5500 tr:FF0E5500 bl:FF0E5500 br:FF0E5500") GUIEditor.label[5] = guiCreateLabel(1, 1, 106, 22, "تقاطيع لحم", false, GUIEditor.staticimage[6]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") -- xBindFunction_ = function () guiSetVisible(GUIEditor.staticimage[1],not guiGetVisible(GUIEditor.staticimage[1])); showCursor(guiGetVisible(GUIEditor.staticimage[1])); end bindKey(Key,"down",xBindFunction_); -- addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor.staticimage[3] then takePlayerMoney (localplayer,5) outputChatBox("تم شراء صحن شكشوكة ( ب 5 $ )") end end ) Link to comment
Abdul KariM Posted February 26, 2016 Share Posted February 26, 2016 Client : addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.label[2] ) then triggerServerEvent("Buy_ShakShokh",getLocalPlayer ( ) ) end end ) ; Server : addEvent("Buy_ShakShokh",true) addEventHandler("Buy_ShakShokh",root, function ( ) if getPlayerMoney ( source ) >= 5 then takePlayerMoney ( source , 5 ) outputChatBox("تم شراء صحن شكشوكة ( ب 5 $ )", source ) else outputChatBox ("لاتملك المال الكافي" , source ) end end ) ; Link to comment
#DRAGON!FIRE Posted February 26, 2016 Share Posted February 26, 2016 معليش بغير مسار الموضوع لكن ي عبد الكريم ودي افهم ليه اكوادك كذا دائما فيها فراغ !! Link to comment
Jupi Posted February 26, 2016 Share Posted February 26, 2016 معليش بغير مسار الموضوع لكن ي عبد الكريم ودي افهم ليه اكوادك كذا دائما فيها فراغ !! علشان يهويها امزح والله : ( والله امزح Link to comment
</Mr.Tn6eL> Posted February 27, 2016 Share Posted February 27, 2016 موضوع السماجة # دابل صادق مسوي زحمة عالفاضي هههههه Link to comment
i,xAhmed Posted February 27, 2016 Author Share Posted February 27, 2016 ذيبان ذيبان اشهد انكم رجال Link to comment
Abdul KariM Posted February 27, 2016 Share Posted February 27, 2016 معليش بغير مسار الموضوع لكن ي عبد الكريم ودي افهم ليه اكوادك كذا دائما فيها فراغ !! والله يطويل العمر كذا تصير سهلة القراءة ويفهمها المبتدأ ويعرف وش اخطاءه , وتصير الاكواد مرتبة , اشوف كذا انا ض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