-
Posts
3,389 -
Joined
-
Last visited
-
Days Won
55
Everything posted by Master_MTA
-
كود الانزرت ورني اياه هو وكود انشاء السياره
-
الله يسعدك يب كل شي خير من عند الله
-
تبي الكل شيل break انا احسبك تبي تحذف سياره فقط
-
يكفيني وجودك يا عسل
-
همم طفشت والله يشباب ما عاد لي خلق بشي ابد كل شي مسككر بوجهي صراحه لا انا فلحت بدراسه ولا بمشاريع انترنت عالعموم بالتوفيق ما عندي اي تعليق على الموضوع
-
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)
-
function () for i,v in ipairs(vehiclesTablee) do destroyElement(v[1]) destroyElement(v[2]) table.remove(vehiclesTablee,i) break end end
-
[Rel]اول مكتبة دي اكس عربية مفتوحة المصدر [اصدار]ا[M.M]
Master_MTA replied to Master_MTA's topic in المساهمات
عاد ذي سالفة متغيرات وتحقق -
بعض اليوزفل فنكشن من مكتبتي كنز والله المكتبة متعوب عليها 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
-
[Rel]اول مكتبة دي اكس عربية مفتوحة المصدر [اصدار]ا[M.M]
Master_MTA replied to Master_MTA's topic in المساهمات
كلم اللعبه تضيفها كفنكشنات رسميه هههه المهم سالفة الاكسبورتس يمديك تختصرها مثلا 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) تمام -
[Rel]اول مكتبة دي اكس عربية مفتوحة المصدر [اصدار]ا[M.M]
Master_MTA replied to Master_MTA's topic in المساهمات
الاق هلا يا عسل اولا المكتبه بعيده جدا كل البعد عن اللاق يمكنك التجربه ثانيا بالنسبة لسالفة المؤشر الفكره انك تسوي dxDrawText('|') وتتحكم بال alpha عشان تتحكم في اختفاء المؤشر ووجوده ثانيا تجيب dxGetTextWidth وخلصت السالفه +_+ وتجمعها على احداثيات بداية الريككتانجل ------------ تمام انا بعيد برمجة الجريد لست اصلا عشان يكون مرن اكثر للاستخدام باذن الله -
يمكنني تنفيذ طلبك مقابل بطاقات سوا
-
ما يحتاج يكون صديقك انت المفروض يكون لك الشرف انك تصادق واحد مثل وايفاي تخيل انا مب صديقك @iMr.WiFi..! يعع (اي خدمه على الفزعه ههه)
-
X onClientClick or onClientGUIClick
-
مشكله يبن الناس كل ما اجي اشتغل انشغل بالدراسه يا يفشل المشروع يا يصير شي غلط
-
[UIKit] مكتبة واجهة المستخدم الحديثة | UI Library
Master_MTA replied to iMr.WiFi..!'s topic in Arabic / العربية
يب -
[UIKit] مكتبة واجهة المستخدم الحديثة | UI Library
Master_MTA replied to iMr.WiFi..!'s topic in Arabic / العربية
روعه صراحه بالتوفيق فصلتوني اكمل المكتبه حقتي -
شطحت مره انت ههه في حدود 65-70 دولار فقط مب 150 لكن عالعموم الله يباركلك حاب تشترك حياك تبي تخش بالنص برضو حياك
-
يشباب انا ملاحظ ان الموضوع تجميع لايكات ههههههه احبكم والله
-
-logadmin- ♡~~> Log Admin 2018 - سجلات لوحة الادمين <~~♡
Master_MTA replied to TOUNSI |, السعأدة's topic in المساهمات
فنانه -
هل تنفع مع الميتا سبلوت كالي لينيكس؟