
khaledmhammed
Members-
Posts
535 -
Joined
-
Last visited
Everything posted by khaledmhammed
-
هلا شباب سفاخ Place = { { "ارمي", x, y, z }, { "مركز شرطة ", x, y, z } } GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(324, 140, 394, 514, "الآنتقالات", false) guiWindowSetSizable(wnd, false) GUIEditor.button[1] = guiCreateButton(64, 439, 244, 65, "انتقال", false, wnd) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") gr = guiCreateGridList(30, 72, 324, 363, false, wnd) guiGridListAddColumn(gr, "المكان", 0.9) for _,Warp in ipairs ( Place ) do local Row = guiGridListAddRow( gr ) local Data = ""..Warp[2]..";"..Warp[3]..";"..Warp[4].."" guiGridListSetItemText( gr, Row, 1, Warp[1], false, false ) guiGridListSetItemData( gr, Row, 1, Data) gr = (guiGridListGetItemData(GridList)) gr = ( guiGridListGetSelectedItem (gr), 1) end end) function () sp = setElementPosition ( Player, posX, posY, posZ ) sp = { end function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor( false ) else guiSetVisible ( wnd, true ) showCursor( true ) end end bindKey("F6", "down", OpenWin) addEventHandler( "onClientPlayerWasted", root, function() if ( source == GUIEditor.button[1] ) then local ITEAM = guiGridListGetSelectedItem( gr ) if ITEAM == -1 then outputChatBox( "#FF0000يجب عليك تحديد مكان أولاً", 255, 100, 100, true ) return end local Data = guiGridListGetItemData ( gr, guiGridListGetSelectedItem ( gr ), 1 ) local Position = split( Data, ';' ) end end) بالضبط ابي الاعب لا حد على ارمي بالقريد لاست ومات يروح لسباون ارمي ولا حدد على مركز شرطة بالقريد لاست لا مات يروح لسباون اللي انا احددة لمركز شرطة عدلت فيه شوي ياليت تصلحوة
-
function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - callClientFunction(source, "dxGetTextWidth", str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - callClientFunction(source, "dxGetTextWidth", str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - callClientFunction(source, "dxGetFontHeight", scale, font))/2 elseif alignY == "bottom" then ay = by - callClientFunction(source, "dxGetFontHeight", scale, font) end end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) callClientFunction(source, "dxDrawText", cap, ax, ay, ax + callClientFunction(source, "dxGetTextWidth", cap, scale, font ), by, color, scale, font ) end end M5dratMisson = createBlip( 2156.1762695313, -1651.7482910156, 14.078443527222, 24, 3, 0, 0, 255, 255, 0, 250) local d5olm5dratShop = createMarker( 2156.1762695313, -1651.7482910156, 14.078443527222, "cylinder", 1.5, 242, 242, 242, 95 ) local rojm5dratShop = createMarker( 140.32954,1366.60278,1083.85938-1, "cylinder", 1.5, 242, 242, 242, 95 ) local m5dratShop = createMarker( 140.46518,1385.14026,1088.36719-1, "cylinder", 2, 255, 255, 0, 170 ) setElementInterior ( rojm5dratShop, 5 ) setElementInterior ( m5dratShop, 5 ) function d5olShop(theElement) if getElementType(theElement) == "player" and (theElement == localPlayer) then fadeCamera(false) setTimer(setElementInterior, 1000, 1, theElement, 5) setTimer(setElementPosition, 1000, 1, theElement, 140.36220,1380.57886,1088.36719) setTimer(setPedRotation, 1000, 1, theElement, 270) setTimer(fadeCamera, 1000, 1, true) playSoundFrontEnd(1) end end function rojShop(theElement) if getElementType(theElement) == "player" and (theElement == localPlayer) then fadeCamera(false) setTimer(setElementInterior, 1000, 1, theElement, 0) setTimer(setElementPosition, 1000, 1, theElement, 2157.74512,-1653.11218,15.07844) setTimer(setPedRotation, 1000, 1, theElement, 270) setTimer(fadeCamera, 1000, 1, true) playSoundFrontEnd(1) end end function ShowM5dratPanel(theElement) if getElementType(theElement) == "player" and (theElement == localPlayer) then guiSetVisible (buywindow,true) showCursor (true) end end --- useFull 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 GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {} } buywindow = guiCreateWindow(321, 125, 239, 475, "Drug-system Shop ", false) guiSetVisible (buywindow,false) centerWindow(buywindow) guiWindowSetSizable(buywindow, false) edit2 = guiCreateEdit(72, 220, 100, 33, "0", false, buywindow) edit3 = guiCreateEdit(72, 81, 100, 33,"0", false, buywindow) edit5 = guiCreateEdit(72, 292, 100, 33, "0", false, buywindow) edit6 = guiCreateEdit(72, 152, 100, 33, "0", false, buywindow) guiEditSetMaxLength ( edit2, 2 ) guiEditSetMaxLength ( edit3, 2 ) guiEditSetMaxLength ( edit5, 2 ) guiEditSetMaxLength ( edit6, 2 ) edit8 = guiCreateEdit(43, 380, 153, 33, "", false, buywindow) guiEditSetReadOnly(edit8, true) buyButton = guiCreateButton(43, 349, 156, 31, "Buy", false, buywindow) guiSetProperty(buyButton, "NormalTextColour", "FFAAAAAA") label2 = guiCreateLabel(76, 195, 100, 15, "الدم(Health 200)", false, buywindow) label3 = guiCreateLabel(66, 50, 116, 15, "السرعة (Speed X10)", false, buywindow) label5 = guiCreateLabel(72, 263, 104, 19, "مضاعفة إصابة العدو", false, buywindow) label6 = guiCreateLabel(90, 124, 64, 18, "قوة الدم", false, buywindow) closeButton = guiCreateButton(47, 428, 139, 27, "Close", false, buywindow) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 132, 63, 43, "12.png", false, buywindow) GUIEditor.staticimage[2] = guiCreateStaticImage(12, 200, 46, 53, "123.png", false, buywindow) GUIEditor.staticimage[3] = guiCreateStaticImage(13, 61, 43, 47, "123456.png", false, buywindow) GUIEditor.staticimage[4] = guiCreateStaticImage(12, 278, 44, 43, "12345.png", false, buywindow) --- window1 fic function SetAll() if tonumber(guiGetText ( edit2 )) ~= nil then setElementData( localPlayer,"GodMoney", guiGetText( edit2 )*getElementData(localPlayer,"GodPrice") ) else guiSetText ( edit2,"0" ) end if tonumber(guiGetText ( edit3 )) ~= nil then setElementData( localPlayer,"SpeedMoney", guiGetText( edit3 )*getElementData(localPlayer,"SpeedPrice") ) else guiSetText ( edit3,"0" ) end if tonumber(guiGetText ( edit5 )) ~= nil then setElementData( localPlayer,"SteroidsMoney", guiGetText( edit5 )*getElementData(localPlayer,"SteroidsPrice") ) else guiSetText ( edit5,"0" ) end if tonumber(guiGetText ( edit6 )) ~= nil then setElementData( localPlayer,"HeroinMoney", guiGetText( edit6 )*getElementData(localPlayer,"HeroinPrice") ) else guiSetText ( edit6,"0" ) end end setTimer( function() if ( guiGetVisible ( buywindow ) == true ) then guiSetText ( edit8, getElementData( localPlayer,"WeedMoney" )+getElementData( localPlayer,"GodMoney" )+getElementData( localPlayer,"SpeedMoney")+getElementData( localPlayer,"LsdMoney" )+getElementData( localPlayer,"SteroidsMoney" )+getElementData( localPlayer,"HeroinMoney" )+getElementData( localPlayer,"ALLMoney" ) ) end end,50,0) addEventHandler ("onClientGUIClick", getRootElement(), function() if (source == closeButton) then guiSetVisible (buywindow,false) showCursor (false) elseif (source == buyButton) then triggerServerEvent ( "giveGod", localPlayer, getElementData( localPlayer,"GodMoney" ), guiGetText( edit2 )) triggerServerEvent ( "giveSpeed", localPlayer, getElementData( localPlayer,"SpeedMoney" ), guiGetText( edit3 )) triggerServerEvent ( "giveSteroids", localPlayer, getElementData( localPlayer,"SteroidsMoney" ), guiGetText( edit5 )) triggerServerEvent ( "giveHeroin", localPlayer, getElementData( localPlayer,"HeroinMoney" ), guiGetText( edit6 )) end end ) GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {} } useWindow = guiCreateWindow(382, 178, 255, 356, "Drugs Panel - تعاطي المخدرات", false) centerWindow(useWindow) guiSetVisible (useWindow,false) guiWindowSetSizable(useWindow, false) radioButton2 = guiCreateRadioButton(10, 127, 205, 21, "الدم(Health 200)", false, useWindow) radioButton3 = guiCreateRadioButton(10, 168, 205, 21, "السرعة (Speed X10)", false, useWindow) radioButton5 = guiCreateRadioButton(9, 211, 205, 21, "مضاعفة إصابة العدو", false, useWindow) radioButton6 = guiCreateRadioButton(9, 256, 205, 21, "قوة الدم", false, useWindow) GodLabel = guiCreateLabel(221, 127, 24, 20, "".. getElementData(localPlayer,"God") .."", false, useWindow) SpeedLabel = guiCreateLabel(221, 168, 24, 20, "".. getElementData(localPlayer,"Speed") .."", false, useWindow) SteroidsLabel = guiCreateLabel(221, 212, 24, 20, "".. getElementData(localPlayer,"Steroids") .."", false, useWindow) Heroin = guiCreateLabel(221, 257, 24, 20, "".. getElementData(localPlayer,"Heroin") .."", false, useWindow) useM5drat = guiCreateButton(9, 298, 235, 41, "Use", false, useWindow) GUIEditor.staticimage[1] = guiCreateStaticImage(38, 34, 183, 74, "123.png", false, useWindow) guiSetProperty(useM5drat, "NormalTextColour", "FFAAAAAA") --------- Bind function PanelShow () getVisible = guiGetVisible (useWindow) if (getVisible == true) then guiSetVisible (useWindow, false) showCursor (false) elseif (getVisible == false) then showCursor (true) guiSetVisible (useWindow, true) guiSetInputEnabled(false) end end addCommandHandler("drog" , PanelShow) bindKey("F7","down",PanelShow) addEventHandler ("onClientGUIClick", getRootElement(), function() if (source == useM5drat) then if guiRadioButtonGetSelected(radioButton1) == true then if getElementData(localPlayer,"Weed") > 0 then if getElementData(localPlayer,"WeedT") == false then setElementData(localPlayer,"WeedT",true) triggerServerEvent ( "takeWeed", localPlayer ) setGameSpeed(1.5) setTimer(setGameSpeed,60000,1,1) setTimer(setElementData,60000,1,localPlayer,"WeedT",false) end end elseif guiRadioButtonGetSelected(radioButton2) == true then if getElementData(localPlayer,"God") > 0 then if getElementData(localPlayer,"GodT") == false then setElementData(localPlayer,"GodT",true) triggerServerEvent ( "takeGod", localPlayer ) setTimer(setElementData,60000,1,localPlayer,"GodT",false) setTimer(triggerServerEvent,60000,1,"removeGod", localPlayer) end end elseif guiRadioButtonGetSelected(radioButton3) == true then if getElementData(localPlayer,"Speed") > 0 then if getElementData(localPlayer,"SpeedT") == false then setElementData(localPlayer,"SpeedT",true) triggerServerEvent ( "takeSpeed", localPlayer ) setGameSpeed(10) setTimer(setGameSpeed,60000,1,1) setTimer(triggerServerEvent,60000,1,"removeSpeed", localPlayer) setTimer(setElementData,60000,1,localPlayer,"SpeedT",false) end end elseif guiRadioButtonGetSelected(radioButton4) == true then if getElementData(localPlayer,"Lsd") > 0 then if getElementData(localPlayer,"LsdT") == false then setElementData(localPlayer,"LsdT",true) triggerServerEvent ( "takeLsd", localPlayer ) setGameSpeed(0.9) setPedWalkingStyle(localPlayer,120)
-
ماعتقد أنها من السكربت لانه قال لو سويت ريستارت تتصلح ماقلت يطرح اكواده كامله , يطرح بس كود فتح النافذه وش بيخسر ض1 ؟ + اول مره اسمع بذي المشكله الغريبه addCommandHandler("drog" , PanelShow) bindKey("F7","down",PanelShow) addEventHandler ("onClientGUIClick", getRootElement(), function() if (source == useM5drat) then if guiRadioButtonGetSelected(radioButton1) == true then if getElementData(localPlayer,"Weed") > 0 then if getElementData(localPlayer,"WeedT") == false then setElementData(localPlayer,"WeedT",true) triggerServerEvent ( "takeWeed", localPlayer ) setGameSpeed(1.5) setTimer(setGameSpeed,60000,1,1) setTimer(setElementData,60000,1,localPlayer,"WeedT",false) end end
-
لا سفاح الزر شغال تمام و نفس المشكله لو غيرت الزر مافي فرق سويتلها هيندل كومندر في اف 8 و نفس المشكله لو ماتفح من اف 7 ما تفتح من اف 8
-
في سيرفري بدون ذكر اسم واجهتني مشكله انا حاط في اف 7 و اف 6 مودين اف 7 مود مخدرات و اف 6 مود قروبات لاكن احيانا تكون مو شغاله عندي يعني ما تفتح الوحه لاكن عند لاعب اخر تفتح يعني المود شغال لاكن فيه مشاكل انها تفتح عند بعض الاعبين و البعض لا مو معناها ني اضغط يفتح عنده لا لا يعني اضغط و ما تفتح معي بس لو ضغط اخوي تفتح معاه ولو سويت للمود رستارت يشتغل تمام في حل وله لا؟؟
-
مشكور تممام الكود شغال ومية مية ع حسب تجربتي يعطيككم العافيةة وماقصصرتو و ع راسسي كلكم
-
شباب معلييش لحستو مخي عطوني الكود الكامل صح
-
طيب كذا بعض الاكواد بسيرفر اخذتها من واحد ياليت تصصلحو كلنت jobMarker1 = createMarker(837.22449,-2066.94556,12.86719-1,"cylinder",2,0,0,0,0) jobPed = createPed(285,837.22449,-2066.94556,12.86719,0) jobBlip = createBlip(837.22449,-2066.94556,12.86719,56) setBlipVisibleDistance(jobBlip,170) setElementFrozen(jobPed,true) triggerServerEvent ( "rr",) addEvent( "ff", true ) addEventHandler( "ff" ) addEventHandler("onClientPedDamage",root, function () if source == jobPed then cancelEvent() end end) local x,y = guiGetScreenSize() addEventHandler("onClientMarkerHit",resourceRoot, function (hit) if source == jobMarker1 and hit == localPlayer then if getElementType(hit) == "player" and getPlayerTeam(hit) ~= getTeamFromName("1") then if not isPedInVehicle(hit) then if getPlayerWantedLevel(hit) == 0 then guiSetVisible(GUIEditor.window[1],true) showCursor(true) else outputChatBox ( "" ) end else outputChatBox ( "") end else outputChatBox ( "") end end end) GUIEditor = { gridlist = {}, window = {}, button = {} } local x = x - 332 local y = y - 333 GUIEditor.window[1] = guiCreateWindow(345, 90, 379, 544, "1", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(54, 487, 94, 41, "1", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(244, 487, 88, 41, "الغاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") Memo1 = guiCreateMemo(13, 30, 356, 166, " يجب ان تكون في قروب", false, GUIEditor.window[1]) guiMemoSetReadOnly(Memo1, true) GUIEditor.gridlist[1] = guiCreateGridList(10, 236, 357, 227, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Number", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.3) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "285", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "1", false, false) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local skin = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),2) if skin ~= "" then triggerServerEvent("startJobww",localPlayer,skin) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEvent("createPilotMarkersww",true) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(jobPed) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("1", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("1", sx, sy, sx, sy, tocolor(0, 255, 9 ), 2-(distance/20), "arial", "center", "center") end end end end) سيرفر function inAclGroup(ff,group) if ff and group then if not getPlayerAccount(ff) then return end if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(ff)),aclGetGroup(group)) then triggerClientEvent ( "rr" ) addEvent( "ff", true ) addEventHandler( "ff" ) return true else return false end end end
-
يا طيب ههههههه الوحه تفتح لا قربت ع ماركر مثل الوظائف انت خليتها ليه من زر؟؟ اللوحه تفتح لا دخلت ماركر مو تفتح من زر انت ماقلت ماركر قلت بس لرتبة يا بعد قلبي واضح من الكود في الكود ذا jobMarker1 = createMarker(837.22449,-2066.94556,12.86719-1,"cylinder",2,0,0,0,0) jobPed = createPed(285,837.22449,-2066.94556,12.86719,0) jobBlip = createBlip(837.22449,-2066.94556,12.86719,56) انها ماركر و بلب وجوب مشكور بس في حل وله لا؟
-
يا طيب ههههههه الوحه تفتح لا قربت ع ماركر مثل الوظائف انت خليتها ليه من زر؟؟ اللوحه تفتح لا دخلت ماركر مو تفتح من زر
-
اوكي يلغالي بجرب و اردلك
-
شيل اكواد فتح الوحة حقتك عشان اضبطها لك ^ . اذا انا ابي اللوحه ما تفتح غير لقروب اسل كيف تبيني اشيلها ؟
-
مرحبا شباب [1] ابي الوحه ذي ماتفتح غير لقروب اسل اسمه حاولت فيها ما زانت ابيها تفتح لقروب اسل فقط jobMarker1 = createMarker(837.22449,-2066.94556,12.86719-1,"cylinder",2,0,0,0,0) jobPed = createPed(285,837.22449,-2066.94556,12.86719,0) jobBlip = createBlip(837.22449,-2066.94556,12.86719,56) setBlipVisibleDistance(jobBlip,170) setElementFrozen(jobPed,true) addEventHandler("onClientPedDamage",root, function () if source == jobPed then cancelEvent() end end) local x,y = guiGetScreenSize() addEventHandler("onClientMarkerHit",resourceRoot, function (hit) if source == jobMarker1 and hit == localPlayer then if getElementType(hit) == "player" and getPlayerTeam(hit) ~= getTeamFromName("1") then if not isPedInVehicle(hit) then if getPlayerWantedLevel(hit) == 0 then guiSetVisible(GUIEditor.window[1],true) showCursor(true) else outputChatBox ( "" ) end else outputChatBox ( "") end else outputChatBox ( "") end end end) GUIEditor = { gridlist = {}, window = {}, button = {} } local x = x - 332 local y = y - 333 GUIEditor.window[1] = guiCreateWindow(345, 90, 379, 544, "1", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(54, 487, 94, 41, "1", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(244, 487, 88, 41, "الغاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") Memo1 = guiCreateMemo(13, 30, 356, 166, " يجب ان تكون في قروب", false, GUIEditor.window[1]) guiMemoSetReadOnly(Memo1, true) GUIEditor.gridlist[1] = guiCreateGridList(10, 236, 357, 227, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Number", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.3) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "285", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "1", false, false) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local skin = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),2) if skin ~= "" then triggerServerEvent("startJobww",localPlayer,skin) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) addEvent("createPilotMarkersww",true) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(jobPed) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("1", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("1", sx, sy, sx, sy, tocolor(0, 255, 9 ), 2-(distance/20), "arial", "center", "center") end end end end)
-
مشكور كيلر بجرب و اردلك
-
هلا شباب .. الحين معي مود اعتقال الشرطي يقدر يعتقل المجرمين لكن ابي اسوي تيم ثاني ان التيمين ذولا هم يقدرون يعتقلون ابي اضيف مع التحقق تيم ثاتي مثل if getTeamName(Team) == "Police" or getTeamName(Team) ~= "FR" then يكون التيمين ذولا يقدرو يعتقلون وهل التحقق صحيح او وش الحل بالضبط ابي التحقق الصحيح ل 3 تيمات يعني عدلوة ابي 3 تيمات في التحقق ذا
-
تبا يا رجل ماحد فاهمني هههههههههههههههههههههههههههههههه
-
طيب وشو الخطاء الي بلكود و وش استخدم؟
-
طيب اخوي شادو وش فايدتها و كيف استخدمها
-
كلنت Place = { { " ", x, y, z }, { " ", x, y, z } } GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(324, 140, 394, 514, "الآنتقالات", false) guiWindowSetSizable(wnd, false) GUIEditor.button[1] = guiCreateButton(64, 439, 244, 65, "انتقال", false, wnd) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") GUIEditor.gridlist[1] = guiCreateGridList(30, 72, 324, 363, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "المكان", 0.9) for _,Warp in ipairs ( Place ) do local Row = guiGridListAddRow( GUIEditor.gridlist[1] ) local Data = ""..Warp[2]..";"..Warp[3]..";"..Warp[4].."" guiGridListSetItemText( GUIEditor.gridlist[1], Row, 1, Warp[1], false, false ) guiGridListSetItemData( GUIEditor.gridlist[1], Row, 1, Data) end end) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor( false ) else guiSetVisible ( wnd, true ) showCursor( true ) end end bindKey("F6", "down", OpenWin) function () triggerServerEvent ( "nWin", resourceRoot,source ) addEvent( "nWin1", true ) end) function() if ( source == GUIEditor.button[1] ) then local ITEAM = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ITEAM == -1 then outputChatBox( "#FF0000يجب عليك تحديد مكان أولاً", 255, 100, 100, true ) return end local Data = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local Position = split( Data, ';' ) setElementPosition( localPlayer, Position[1], Position[2],Position[3] ) end end) سيرفر function sp () triggerClientEvent ( "nWin1", sp ) triggerClientEvent("nWin1", Root(), sp) addEvent( "nWin", true ) addEventHandler( "onPlayerSpawn", sp ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Fd" ) ) end end ) الاكواد ذي تمام وله لا + يا حبابي مو انا مسوي الاكواد واحد خوي
-
ابي الانتقالات تكون لقروب اسل مثلا مقر شرطة مقر عصابات مقر قروب fB ولو حدد على مقر شرطة وهو شرطي لا مات يروح شرطة بس لو مو شرطي مايروح ولو حدد على مقر عصابات وهو من اسل اسمه كذا يروح للاحدث لو مو منه مايروح Place = { { " ", x, y, z }, { " ", x, y, z } } GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(324, 140, 394, 514, "الآنتقالات", false) guiWindowSetSizable(wnd, false) GUIEditor.button[1] = guiCreateButton(64, 439, 244, 65, "انتقال", false, wnd) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") GUIEditor.gridlist[1] = guiCreateGridList(30, 72, 324, 363, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "المكان", 0.9) for _,Warp in ipairs ( Place ) do local Row = guiGridListAddRow( GUIEditor.gridlist[1] ) local Data = ""..Warp[2]..";"..Warp[3]..";"..Warp[4].."" guiGridListSetItemText( GUIEditor.gridlist[1], Row, 1, Warp[1], false, false ) guiGridListSetItemData( GUIEditor.gridlist[1], Row, 1, Data) end end) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor( false ) else guiSetVisible ( wnd, true ) showCursor( true ) end end bindKey("F6", "down", OpenWin) addEventHandler( "onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then local ITEAM = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ITEAM == -1 then outputChatBox( "#FF0000يجب عليك تحديد مكان أولاً", 255, 100, 100, true ) return end local Data = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local Position = split( Data, ';' ) setElementPosition( localPlayer, Position[1], Position[2],Position[3] ) end end)
-
قصده تفتح لوحة للشرطي ويطلع فيها كم قتل وكم لازم يقتل وينتقل للمستوى الاخر باختصار يبي مثل اللفل يحتاج bindKey getPlayerTeam getTeamFromName guiSetVisible and guiGetVisible setElementData getElementData setAccountData getAccountData مشكور رح احاول و اشوف
-
وضح اكثر اخوي يعني ابي لوحه تظهر لكل وظيفه انا احددها فيها الفلات تبع كل وظيفه كم شرطي= كم قتلت مزارع = كم زعرت باص = كم وصلت ع سبيل المثا لو شكراا للي ردو