
Dr.Xen
Members-
Posts
412 -
Joined
-
Last visited
Everything posted by Dr.Xen
-
يعني مثلا انت اخذت سيارة من ماركر الاولى يوديك في مكان واخذت من ماركر الثاني يوديك في مكان ثاني واخذت من الثالثة يوديك في مكان ثالث ض1
-
ابي كذا مثلا انت اخذت موتر من ماركر اولى تجي جنبه ورحت ماركر ثانية تجي جنبها السيارة ..
-
السلام عليكم ورحمة الله وبركاته ابي اخلي ذالكود ثلاثة ماركرات واول ما يأخذ سيارة في ثلاثة اماكن انا احددهم + لون السيارة 0,0,255 + لو راكب السيارة ما تفتح له اللوحة function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end Wnd = guiCreateWindow(525, 157, 267, 315, "( {Vehicle Police})", false) guiSetVisible(Wnd,false) centerWindow(Wnd) guiWindowSetMovable(Wnd, false) guiWindowSetSizable(Wnd, false) guiSetAlpha(Wnd, 1.00) guiSetProperty(Wnd, "CaptionColour", "FF0388F8") gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) guiGridListAddColumn(gridlist, "Vehicles", 0.9) button = guiCreateButton(35, 261, 195, 27, "{Create it!#}", false, Wnd) guiSetFont(button, "default-bold-small") guiSetProperty(button, "NormalTextColour", "FFFBE600") label = guiCreateLabel(8, 290, 153, 21, "Created By Dr.anAs ", false, Wnd) guiSetFont(label, "default-bold-small") guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) local VehicleTable = { 597,598,490,596,427,523 } for _,vehicle in ipairs (VehicleTable) do local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiSetFont(gridlist,"default-bold-small") end addEventHandler("onClientGUIClick",button, function () local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) playSoundFrontEnd(33) guiSetVisible(Wnd,false) showCursor(false) end,false) local marker = createMarker(1570.5,-1608.5,12.39999961853,'cylinder',1.5,0,0,255,255) addEventHandler("onClientMarkerHit", marker, function(hitPlayer) if getTeamName(getPlayerTeam(hitPlayer)) == "Police" then guiSetVisible(Wnd, true) showCursor(true) end end) addEventHandler("onClientGUIClick",button, function () local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) playSoundFrontEnd(33) guiSetVisible(Wnd,false) showCursor(false) end,false) local marker = createMarker(1570.5,-1608.5,12.39999961853,'cylinder',1.5,0,0,255,255) addEventHandler("onClientMarkerHit", marker, function(hitPlayer) if getTeamName(getPlayerTeam(hitPlayer)) == "Police" then guiSetVisible(Wnd, true) showCursor(true) end end) addEvent("When_asked_to_create_a_vehicle",true) addEventHandler("When_asked_to_create_a_vehicle",root, function (Veh) if getElementData ( source, "destroy" ) then destroyElement ( getElementData ( source, "destroy")) end local vehName = getVehicleIDFromName(Veh) local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (vehName, 1570.5999755859,-1612,13.199999809265,0,0,181 ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) end )
-
يخي وش تحسب هذي لعبة لعبة لعبة مب حقيقي .. شباب ابي انا كتبت باللوحة اكتب عدد المخدرات اقصى حد 500..ابيه لمن يضغط عليه يروح الكتابة ويقدر يكتب
-
مممكن تشف لي الكود صح ام لأ..واذا خطا عدله لأهنت GUIEditor = { window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 207, 253, 224, "شراء مخدرات/وضيفة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF128509") Taking = guiCreateButton(9, 194, 73, 20, "Taking Task", false, GUIEditor.window[1]) guiSetProperty(Taking, "NormalTextColour", "FF128509") Exit = guiCreateButton(170, 194, 73, 20, "Exit", false, GUIEditor.window[1]) guiSetProperty(Exit, "NormalTextColour", "FF8A5503") Edit = guiCreateEdit(10, 75, 233, 24, "اكتب عدد المخدرات اقصى حد500..", false, GUIEditor.window[1]) guiSetAlpha(Edit, 0.63) guiSetProperty(Edit, "NormalTextColour", "FF0606F8") GUIEditor.label[1] = guiCreateLabel(48, 55, 170, 16, "عدد المخدرات \"الواحد بــ100$\"", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 18, 133, 9) Buy = guiCreateButton(90, 109, 73, 20, "Buy", false, GUIEditor.window[1]) guiSetProperty(Buy, "NormalTextColour", "FF8F0000") GUIEditor.staticimage[1] = guiCreateStaticImage(82, 149, 88, 65, "name.png", false, GUIEditor.window[1]) end ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[7] = guiCreateWindow(284, 168, 282, 70, "Task Drugs", false) guiWindowSetSizable(GUIEditor.window[7], false) guiSetAlpha(GUIEditor.window[7], 0.86) guiSetProperty(GUIEditor.window[7], "CaptionColour", "FF890A03") GUIEditor.button[7] = guiCreateButton(10, 30, 86, 23, "100=500$", false, GUIEditor.window[7]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF036F8A") GUIEditor.button[2] = guiCreateButton(96, 30, 86, 23, "300=1745$", false, GUIEditor.window[7]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF036F8A") GUIEditor.button[3] = guiCreateButton(182, 30, 86, 23, "500=3000$", false, GUIEditor.window[7]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF036F8A") end ) local eB3 = createMarker(1276.36426,-1629.24292,27,"cylinder",1.5,105,105,255,255) addEventHandler ("onClientMarkerHit", eB3, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "No Team" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) end end ) addEventHandler ("onClientGUIClick", root, function ( ) local mm = getPlayerTeam ( localPlayer ) if source == "Taking" and mm and getTeamName ( mm ) == "No Team" then guiSetVisible ( GUIEditor.window[7], true ) guiSetVisible ( GUIEditor.button[2], false ) end end )
-
يب يعني خروج اكيد تعرف واحد قالي سهله بس ما اعرف اذا ضغط زر خروج على طول يتقفل ! + وفي زر شراء اول ما تضغطها تسحب منك الفلوس وكل بعد 30 ثانية تزيد دم 4 يعني اول ما يشتري ودمه ناقض يزود يزود لين يصير فل ويتوقف العدد
-
ما اعرف اسويهم ممكنن تسويهم وكذا اي واحد ضغط زر يسحب منه فلوس وبعد كل 30 ثانية يزيد دمه 5
-
انا سويت لوحة فيها اززرار ،، ممكن تعطيني كود الي تخلي اللوحة تفتح لو لمست الماركر وهو من التيم ! وفيها زر لو ضغطته تفتح لك ثانية الأول تقفل والثانية تفتح واذا ضغط زر تقفل الأثنين
-
GUIEditor = { window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 207, 253, 224, "شراء مخدرات/وضيفة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF128509") Taking = guiCreateButton(9, 194, 73, 20, "Taking Task", false, GUIEditor.window[1]) guiSetProperty(Taking, "NormalTextColour", "FF128509") Exit = guiCreateButton(170, 194, 73, 20, "Exit", false, GUIEditor.window[1]) guiSetProperty(Exit, "NormalTextColour", "FF8A5503") Edit = guiCreateEdit(10, 75, 233, 24, "اكتب عدد المخدرات اقصى حد500..", false, GUIEditor.window[1]) guiSetAlpha(Edit, 0.63) guiSetProperty(Edit, "NormalTextColour", "FF0606F8") GUIEditor.label[1] = guiCreateLabel(48, 55, 170, 16, "عدد المخدرات \"الواحد بــ100$\"", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 18, 133, 9) Buy = guiCreateButton(90, 109, 73, 20, "Buy", false, GUIEditor.window[1]) guiSetProperty(Buy, "NormalTextColour", "FF8F0000") GUIEditor.staticimage[1] = guiCreateStaticImage(82, 149, 88, 65, ":guieditor1/images/examples/mtalogo.png", false, GUIEditor.window[1]) end )
-
اخوي اانا ابي كود يفتح لك لوحة عند لمس الماركر وداخل القريد في زر اول ما تضغط تطلع لك لو حة ثانية + وعند ضغط شراء كل بعد 30 ثانية تزيد الدم نسبة 5 هذي كلها ليتم معين ^
-
...السلام عليكم ورحمة الله وبركاته! ابي تعديل على القريد ليست ! انا حطيت مكان علشان تكتب بس ابي يكون فيها كتابة ولو ضغطت على المكان علشان تعدل الكتابة تختفي وبعدين يحط العدد مثلا حط 200 وضغط شراء تطلع كلام بالشات كلأم ( وكل بعد 30 ثانية تزود دم 20 وانا حطيت زر فيها لوحة ثانية ابي لمن يضغط الزر من اللوحة تفتح له اللوحة + وفي زر اسمه خروج لمن يضغط يقفل اللوحة+ GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 207, 253, 224, "شراء مخدرات/وضيفة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF128509") GUIEditor.button[1] = guiCreateButton(9, 194, 73, 20, "Taking Task", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF128509") GUIEditor.button[2] = guiCreateButton(170, 194, 73, 20, "Exit", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF8A5503") GUIEditor.edit[1] = guiCreateEdit(10, 75, 233, 24, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(94, 53, 72, 16, "عدد المخدرات", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 18, 133, 9) GUIEditor.button[3] = guiCreateButton(90, 109, 73, 20, "Buy", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF8F0000") GUIEditor.staticimage[1] = guiCreateStaticImage(82, 149, 88, 65, ":guieditor1/images/examples/mtalogo.png", false, GUIEditor.window[1]) end )
-
شاكرين لكم على المساعدة
-
مازيط هذي جربت من قبل