Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/09/18 in all areas

  1. اول ت ـصميم سلاح ناري في MTA تصميمي من الالف للياء رأيكم يهمني شكراً
    3 points
  2. اليوم الخميس كنت فاضي حوالي ساعه فما كان في شي اسويه فسويته لك حظك بقا بس ما كملته خلي الشباب يكملوه لك local Races, FinishMarker, MarkerBlip = { ["Players"] = {}, ["Cars"] = {}, ["State"] = "Stopped", ["EndPosition"] = {0, 0, 0}, ["WarpPosition"] = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0} }, ["Time"] = 10, ["Command"] = "سباق", }, nil, nil function isPlayerInRace(p) if p and isElement(p) then return Races["Players"][p] end return false end addEventHandler("onResourceStart", resourceRoot, function() startRace() end ) function startRace() for _,player in ipairs(getElementsByType("player")) do outputChatBox("Server races started, type ' "..Races["Command"].." ' in the chat to join the race", player, 255, 255, 0, true) end Races["State"] = "Waiting" FinishMarker = createMarker(Races["EndPosition"][1], Races["EndPosition"][2], Races["EndPosition"][3], "checkpoint", 3, 255, 255, 0, 100) MarkerBlip = createBlip(Races["EndPosition"][1], Races["EndPosition"][2], Races["EndPosition"][3], 1) BeginTimer = setTimer( function() for _,player in pairs(Races["Players"]) do outputChatBox("Race has begin, first one to reach the finish line will win the race", player, 255, 0, 0, true) if isElement(Races["Cars"][player]) then setElementFrozen(Races["Cars"][player], false) setElementCollisionsEnabled(Races["Cars"][player], false) end end Races["State"] = "Started" end ,5*60000, 1) end addEventHandler("onPlayerChat", root, function(text) if Races["State"] == "Waiting" then if not isPlayerInRace(source) then if not isPedDead(source) then if isPedInVehicle(source) then removePedFromVehicle(source) end if isElement(Races["Cars"][source]) then destroyElement(Races["Cars"][source]) Races["Cars"][source] = nil end setElementPosition(source, unpack(Races["WarpPosition"][math.random(#Races["WarpPosition"])])) Races["Cars"][source] = createVehicle(411, unpack(Races["WarpPosition"][math.random(#Races["WarpPosition"])])) setElementFrozen(Races["Cars"][source], false) setElementCollisionsEnabled(Races["Cars"][source], false) Races["Players"][source] = true end end end end ) او كمله انت
    3 points
  3. احسن منك.. تتكلم وما تسوي شي
    3 points
  4. TPF is bringing opportunities for those players who don't know scripting but wants to learn. We ( TPF staff ) offers free courses in various languages, as well as designing, for totally free. Languages we can teach you? We can teach you Lua, HTML, CSS ,PHP and MYSQL What can we teach you in designing ? Creating logos, creating banners ,posters , web design and MORE !!!(Using Photoshop cs6) Our contact: Contact DiGiTal#2028 or join our discord server : https://discord.gg/BxkW65z For more information and tutorials visit our website : https://tutoplayfun.ml/
    1 point
  5. Hello, I'll present you MAIL BOX JOB, i'm working on other jobs that will be added soon (it takes me more 1 day of scripting just to making a script nearly perfect )!! FEATURES: NO ANY BUG NOTIFICATION SYSTEM GUI PANEL INDICATOR OF THE DESTINATION COOL ANIMATIONS MAP VIDEO(will be added soon) SCREEN SHOT: CONTACT: DISCORD: DiGiTal#2028 ()()You both should see this page()()@thisdp@Simple01
    1 point
  6. اها معلش فهمت غلط , مش مشكله خلاص واي فاي عمل الواجب معك
    1 point
  7. حبيبي تسلم لكن الفكره مش هنا انا ممكن اعمله لو ل 1 جريد لست لكن انا عايز اعمله لاي جريد لست لول فعشان كده عايزه نسبة وتناسب هوا ده اللي بكلم فيه لكن عالعموم تسلم
    1 point
  8. local testTable = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22} local scrollLevel = 0 local currentLevel = 0 local totalRows = 7 local selected = {} local addedValue = 0 function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 240, 800, 121, tocolor(0, 0, 0, 150), false) local tableSize = #testTable if tableSize > totalRows then scrollLevel = (tableSize/totalRows)-1 if scrollLevel > math.floor((tableSize/totalRows)-1) then scrollLevel = scrollLevel + 1 end end if currentLevel == 0 then local startIndex = 1 local endIndex = totalRows for index = startIndex, endIndex do if testTable[index] and testTable[index] ~= nil then if isMouseInPosition(20+((index-1)*107)+addedValue, 250, 107, 101) or (selected[1] == 20+((index-1)*107)+addedValue and selected[2] == 250 and selected[3] == 107 and selected[4] == 101) then dxDrawRectangle(20+((index-1)*107)+addedValue, 250, 107, 101, tocolor(0, 0, 0, 150), false) dxDrawText(tostring(testTable[index]), 20+((index-1)*107), 250, 127+(((index-1)*107)), 350, tocolor(150, 150, 150, 255), 1.00, "default", "center", "center", false, false, false, false, false) else dxDrawRectangle(20+((index-1)*107)+addedValue, 250, 107, 101, tocolor(62, 194, 68, 150), false) dxDrawText(tostring(testTable[index]), 20+((index-1)*107), 250, 127+(((index-1)*107)), 350, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end end end elseif currentLevel > 0 then local startIndex = currentLevel*totalRows+1 local endIndex = (currentLevel+1)*totalRows for index = startIndex, endIndex do local drawIndex = index-(totalRows*currentLevel) if testTable[index] and testTable[index] ~= nil then if isMouseInPosition(20+((drawIndex-1)*107), 250, 107, 101) or (selected[1] == 20+((drawIndex-1)*107) and selected[2] == 250 and selected[3] == 107 and selected[4] == 101) then dxDrawRectangle(20+((drawIndex-1)*107), 250, 107, 101, tocolor(200, 200, 200, 150), false) dxDrawText(tostring(testTable[index]), 20+((drawIndex-1)*107), 250, 127+(((drawIndex-1)*107)), 350, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else dxDrawRectangle(20+((drawIndex-1)*107), 250, 107, 101, tocolor(62, 194, 68, 150), false) dxDrawText(tostring(testTable[index]), 20+((drawIndex-1)*107), 250, 127+(((drawIndex-1)*107)), 350, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end end end end end ) bindKey("a", "down", function() currentLevel = currentLevel - 1 if currentLevel < 0 then currentLevel = scrollLevel end end ) bindKey("d", "down", function() currentLevel = currentLevel + 1 if currentLevel > scrollLevel then currentLevel = 0 end end ) addEventHandler("onClientClick", root, function(b,s) if b == "left" and s == "down" then selected = {} local startIndex, endIndex if currentLevel > 0 then startIndex = currentLevel*totalRows+1 endIndex = (currentLevel+1)*totalRows else startIndex = 1 endIndex = totalRows end for index = startIndex, endIndex do local drawIndex if currentLevel > 0 then drawIndex = index-(totalRows*currentLevel) else drawIndex = index end if testTable[index] and testTable[index] ~= nil then if isMouseInPosition(20+((drawIndex-1)*107), 250, 107, 101) then selected = {20+((drawIndex-1)*107), 250, 107, 101} end end end end end ) بص هو واي فاي ساعدك بس صراحه مش عايز امسح الي كتبته ? فذا مثال كنت مسويه زمان لما كنت بحاول اسوي جريدليست بس بالعرض عشان احط فيه صور و كذا بما اني معتزل قلت ممكن يفيدك او تاخد منه فكره اسهل عن السكرول بار
    1 point
  9. wow تصدق ولا جات بمخي طريقة فننااااااااانه thx بجرب واقولك زبطت معي او لا انا اصلا مسوي فنكشن يجيبلي اقصى رو يمكن عرضه لول
    1 point
  10. في سناباتي تجد المتعه والراحه النفسيه والذوق بالتصماميم والراحه النفسيه
    1 point
  11. وانا اقول من ذا سوبر اكس طلع انت ي خالد العمري الله يهديك وانا محتار لي فترة ..
    1 point
  12. سوي الي تشوفه سهل عليك
    1 point
  13. لا داعي يا سترونج ناس ما تقدرني ???
    1 point
  14. بعد الفورمات لازم تحمل تحديثات كرت الشاشه من خلال تحديثات الويندوز, وبخصوص الألعاب أنصحك بجهاز مكتبي عشان تقدر تغير القطع إذا جار عليها الزمان. وكرت الشاشة والرامات كلها مهمه أنا عندي كرت شاشه نفيديا 1050 4 قيقا وضعيف صراحة ندمت إني اخذت لابتوب كان المكتبي أفضل ...
    1 point
  15. Update: fixed bugs with combo boxes and edit boxes: - Fixed bug with edit box, when you click on it, it's focus was blur. - Fixed bug with combo boxes, when clear combo box, it clears only every second item - Fixed bug with combo boxes, when removing item, size of opened combobox doesn't changing
    1 point
  16. اظن مهمه مثل الريس يبيلها مبرمج ممتاز عشان تفادي البقات واللاق والاشياء الاخري اكيد
    1 point
  17. لازمك مستوى ممتاز , تحيآتي .
    1 point
  18. Update: Done work on events of system: - Now method addEvent returns modified function of event to call it for method removeEvent. - Added method removeEvent for classes, argument of event function needs to be a function, what returns with addEvent. - Now added method destroy for all classes to destroy Custom Widget. Yay - Added methods to get/set text for Custom Tooltip. - For Tabbed Panels added method to clear all tabs.
    1 point
  19. اهااا مشكور حبي عرفت الخطاء
    1 point
  20. ..هو ما حدد الوظيفة الي يبيها هو قال عايز كود سحب من الاعب مبلغ
    1 point
  21. addEventHandler ( "onClientGUIClick" , root, function ( ) if ( source == Button ) then -- اسم الزر الي يسحب الفلوس local Money_ = getPlayerMoney() if ( Money_ >= 200000 ) then-- الرقم الي تبية يتسحب takePlayerMoney(200000)-- الرقم الي تبية يتسحب outputChatBox ( "لقد تمت عملية الشراء !", 0, 255, 255 ) else outputChatBox ( "لاتمتلك المال الكافي" , 255 , 0 , 0 ) end end end );
    1 point
  22. لي الحق اعرض السعر الي عايزه
    0 points
×
×
  • Create New...