Jump to content

Master_MTA

Members
  • Posts

    3,389
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by Master_MTA

  1. كود الانزرت ورني اياه هو وكود انشاء السياره
  2. الله يسعدك يب كل شي خير من عند الله
  3. تبي الكل شيل break انا احسبك تبي تحذف سياره فقط
  4. همم طفشت والله يشباب ما عاد لي خلق بشي ابد كل شي مسككر بوجهي صراحه لا انا فلحت بدراسه ولا بمشاريع انترنت عالعموم بالتوفيق ما عندي اي تعليق على الموضوع
  5. function GHook(sourceResource, functionName, isAllowedByACL, luaFilename, luaLineNumber, ...) local args = {...} outputChatBox("!") if functionName=='giveWeapon' or functionName=='setWeaponAmmo' or functionName=='takeWeapon' then if #args==0 then return end if getElementType(args[1]) == 'player' then SetWeapon(args[1]) end end end addDebugHook('preFunction', GHook)
  6. function () for i,v in ipairs(vehiclesTablee) do destroyElement(v[1]) destroyElement(v[2]) table.remove(vehiclesTablee,i) break end end
  7. بعض اليوزفل فنكشن من مكتبتي كنز والله المكتبة متعوب عليها function dxDrawRoundedRectangle(x,y,width,height,raduis,color,postgui) dxDrawRectangle(x,y+raduis,width+1,height-(raduis*2),color,postgui)--horezantal rectangle dxDrawRectangle(x+raduis,y,width-(raduis*2),height+1,color,postgui)--vertical rectangle for k=180,270 do--left top local co=math.cos(math.rad(k))* raduis local si=math.sin(math.rad(k))* raduis dxDrawLine((x+raduis)+co,(y+raduis)+si,x+raduis,y+raduis,color,1,postgui) end for k=270,360 do--right top local co=math.cos(math.rad(k))* raduis local si=math.sin(math.rad(k))* raduis dxDrawLine((x+width-raduis)+co,(y+raduis)+si,x+width-raduis,y+raduis,color,1,postgui) end for k=90,180 do--left bottom local co=math.cos(math.rad(k))* raduis local si=math.sin(math.rad(k))* raduis dxDrawLine((x+raduis)+co,(y+height-raduis)+si,x+raduis,y+height-raduis,color,1,postgui) end local k=360 while(k<=(360+90))do if k~= 360 then local co=math.cos(math.rad(k))* raduis local si=math.sin(math.rad(k))* raduis dxDrawLine((x-raduis+width)+co,(y+height-raduis)+si,x+width-raduis,y+height-raduis,color,1,postgui) end k=k+1; end end function dxDrawCutUpRectangle(x,y,width,height,color,postgui,topcolor,bordercolor) dxDrawRectangle(x,y+(height*5/100),width,height-(height*5/100),color,postgui)--down dxDrawRectangle(x+(width*6.5/100),y,width-(width*6.5/100),(height*5/100),topcolor,postgui)---top dxDrawRectangle(x,y,(width*6.5/100),(height*5/100),bordercolor,postgui)---chip left dxDrawRectangle(x+(width*93.5/100),y,(width*6.5/100),(height*5/100),bordercolor,postgui)---chip right dxDrawLine(x,y+(height*5/100),x,y+(height),bordercolor,1,postgui)--left dxDrawLine(x+(width)-1,y+(height*5/100),x+width-1,y+(height),bordercolor,1,postgui)--right dxDrawLine(x,y+(height)-1,x+width,y+(height)-1,bordercolor,1,postgui)--bottom end function dxDrawRoundUpRectangle(x, y, width, height,topcolor, color,postgui) local radius=(height*5/100)/2 local width = width - (radius * 2) local height = height -( radius * 2) local x = x + radius local y = y + radius dxDrawCircle(x, y+radius, radius*2, 180, 270, topcolor, topcolor, 7,1,postgui) dxDrawCircle(x + width, y+radius, radius*2, 270, 360, topcolor, topcolor, 7,1,postgui) dxDrawRectangle(x, y-radius, width, radius*2, topcolor,postgui) dxDrawRectangle(x-(radius*2), y+radius, width+(radius*4), height+radius, color,postgui) end function dxDrawDxWindow(x, y, width, height,topcolor, color,bordercolor,postgui) dxDrawRectangle(x,y,width,height,color,postgui) dxDrawRectangle(x,y,width,height*5/100,topcolor,postgui) dxDrawLine(x,y,x+width-1,y,bordercolor,1,postgui)--top top :D dxDrawLine(x,y,x,y+height,bordercolor,1,postgui)--left dxDrawLine(x+width-1,y,x+width-1,y+height,bordercolor,1,postgui)--right dxDrawLine(x,y+height,x+width-1,y+height,bordercolor,1,postgui)--bottom end function getMaxStringForWidth(text,width,isinvers,scale,font) local scale=scale or 1.15 local font=font or 'default-bold' local isinvers= isinvers or false local mystring='' local inverstable={} local num=0 if text~=nil then local txtwidth=dxGetTextWidth( text,scale,font) if width>=txtwidth then return text,text end for v in text:gmatch('.') do if not isinvers then mystring=mystring..v local finalWidth=dxGetTextWidth( mystring,scale,font) if finalWidth>=width then mystring=mystring:gsub("[%z\1-\127\194-\244][\128-\191]*$", "") return mystring,text end else table.insert(inverstable,v) end end if isinvers then num=#inverstable while(num>=1) do mystring=inverstable[num]..mystring local finalWidth=dxGetTextWidth( mystring,scale,font) if finalWidth>=width then return mystring,text end num=num-1 end return mystring,text end end return false,text end وباقي لسا حملو المكتبه ودورو بنفسكم core usefulfunctions.lua
  8. كلم اللعبه تضيفها كفنكشنات رسميه هههه المهم سالفة الاكسبورتس يمديك تختصرها مثلا local i=exports['ms-dxlib']--------طبعا بدل ms-dxlib باسم المكتبة -----------وتستخدمها طبيعي wnd=i:dxCreateWindow() btn=i:dxCreateButton() ----وهكذا طبعا الاقواس كمل اللي بينها اما بالنسبه للمثال addEventHandler('onClientRender',root,function() dxDrawText('hello world',200,200,200,200) dxDrawText('|',200+dxGetTextWidth('hello world'),200,200,200,tocolor(255,255,255,math.random(100,255))) end) تمام
  9. الاق هلا يا عسل اولا المكتبه بعيده جدا كل البعد عن اللاق يمكنك التجربه ثانيا بالنسبة لسالفة المؤشر الفكره انك تسوي dxDrawText('|') وتتحكم بال alpha عشان تتحكم في اختفاء المؤشر ووجوده ثانيا تجيب dxGetTextWidth وخلصت السالفه +_+ وتجمعها على احداثيات بداية الريككتانجل ------------ تمام انا بعيد برمجة الجريد لست اصلا عشان يكون مرن اكثر للاستخدام باذن الله
  10. يمكنني تنفيذ طلبك مقابل بطاقات سوا
  11. ما يحتاج يكون صديقك انت المفروض يكون لك الشرف انك تصادق واحد مثل وايفاي تخيل انا مب صديقك @iMr.WiFi..! يعع (اي خدمه على الفزعه ههه)
  12. X onClientClick or onClientGUIClick
  13. مشكله يبن الناس كل ما اجي اشتغل انشغل بالدراسه يا يفشل المشروع يا يصير شي غلط
  14. روعه صراحه بالتوفيق فصلتوني اكمل المكتبه حقتي
  15. هههههههههه انقرضو انتم
  16. شطحت مره انت ههه في حدود 65-70 دولار فقط مب 150 لكن عالعموم الله يباركلك حاب تشترك حياك تبي تخش بالنص برضو حياك
  17. يشباب انا ملاحظ ان الموضوع تجميع لايكات ههههههه احبكم والله
  18. ايوه عطني هههههه
  19. هل تنفع مع الميتا سبلوت كالي لينيكس؟
×
×
  • Create New...