Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Everything posted by The Don

  1. تفضل حذفت لك مخارج النص ولا تنسى الرستارت للسكربت local root = getRootElement() local rroot = getResourceRootElement() --addEvent("Mensaje",true) local sx,sy = guiGetScreenSize() local chatbox = getChatboxLayout() local y = chatbox["chat_scale"][2] local lineas = chatbox["chat_lines"] local font = "default" if chatbox["chat_font"] == 1 then font = "clear" elseif chatbox["chat_font"] == 2 then font = "default-bold" elseif chatbox["chat_font"] == 3 then font = "arial" end addEventHandler("onClientChatMessage",root,function(txt) for k,v in ipairs(getElementsByType("gui-staticimage",rroot)) do local gx,gy = guiGetPosition(v,true) if string.len(txt) > 48 then guiSetPosition(v, gx,gy-0.025,true) else guiSetPosition(v, gx,gy-0.025,true) end if gy <= 0.01 then destroyElement(v) end end txt = string.gsub(txt,"#[%x][%x][%x][%x][%x][%x]","") local len = 0 if string.len(txt) > 48 then return end if string.find(txt,"ض1") then local text = string.gsub(txt,"ض1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) elseif string.find(txt,"ض2") then local text = string.gsub(txt,"ض2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q2.png",true) elseif string.find(txt,"ض3") then local text = string.gsub(txt,"ض3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q3.png",true) elseif string.find(txt,"ض4") then local text = string.gsub(txt,"ض4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q4.png",true) elseif string.find(txt,"ض5") then local text = string.gsub(txt,"ض5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q5.png",true) elseif string.find(txt,"ض6") then local text = string.gsub(txt,"ض6","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q6.png",true) elseif string.find(txt,"ض7") then local text = string.gsub(txt,"ض7","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q7.png",true) elseif string.find(txt,"ض8") then local text = string.gsub(txt,"ض8","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q8.png",true) elseif string.find(txt,"ض9") then local text = string.gsub(txt,"ض9","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q9.png",true) elseif string.find(txt,"ض0") then local text = string.gsub(txt,"ض0","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q0.png",true) elseif string.find(txt,"@") then local text = string.gsub(txt,"@","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q10.png",true) elseif string.find(txt,"ق0") then local text = string.gsub(txt,"ق0","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q11.png",true) elseif string.find(txt,"ق1") then local text = string.gsub(txt,"ق1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q12.png",true) elseif string.find(txt,"ق2") then local text = string.gsub(txt,"ق2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q13.png",true) elseif string.find(txt,"ق3") then local text = string.gsub(txt,"ق3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q14.png",true) elseif string.find(txt,"ق4") then local text = string.gsub(txt,"ق4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q15.png",true) elseif string.find(txt,"ق5") then local text = string.gsub(txt,"ق5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q16.png",true) elseif string.find(txt,"ق6") then local text = string.gsub(txt,"ق6","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q17.png",true) elseif string.find(txt,"ق7") then local text = string.gsub(txt,"ق7","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q18.png",true) elseif string.find(txt,"ق8") then local text = string.gsub(txt,"ق8","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q19.png",true) elseif string.find(txt,"ق9") then local text = string.gsub(txt,"ق9","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q20.png",true) elseif string.find(txt,"د1") then local text = string.gsub(txt,"د1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q21.png",true) elseif string.find(txt,"د2") then local text = string.gsub(txt,"د2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q22.png",true) elseif string.find(txt,"د3") then local text = string.gsub(txt,"د3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q23.png",true) elseif string.find(txt,"د4") then local text = string.gsub(txt,"د4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q24.png",true) elseif string.find(txt,"د5") then local text = string.gsub(txt,"د5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q25.png",true) elseif string.find(txt,"ذذ") then local text = string.gsub(txt,"ذذ","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q220.png",true) elseif string.find(txt,"د0") then local text = string.gsub(txt,"د0","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q30.png",true) elseif string.find(txt,"ع1") then local text = string.gsub(txt,"ع1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/sa.png",true) elseif string.find(txt,"ع2") then local text = string.gsub(txt,"ع2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/bh.png",true) elseif string.find(txt,"ع3") then local text = string.gsub(txt,"ع3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/qa.png",true) elseif string.find(txt,"ع4") then local text = string.gsub(txt,"ع4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/iq.png",true) elseif string.find(txt,"ع5") then local text = string.gsub(txt,"ع5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/eg.png",true) elseif string.find(txt,"ع6") then local text = string.gsub(txt,"ع6","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/ae.png",true) elseif string.find(txt,"ع7") then local text = string.gsub(txt,"ع7","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/kw.png",true) elseif string.find(txt,"ع8") then local text = string.gsub(txt,"ع8","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/dz.png",true) elseif string.find(txt,"ع9") then local text = string.gsub(txt,"ع9","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/ps.png",true) end end) function convertirRelativo(x) local rx = x/sx return rx end --[[ MAX LEN = 469 --]]local root = getRootElement() local rroot = getResourceRootElement() --addEvent("Mensaje",true) local sx,sy = guiGetScreenSize() local chatbox = getChatboxLayout() local y = chatbox["chat_scale"][2] local lineas = chatbox["chat_lines"] local font = "default" if chatbox["chat_font"] == 1 then font = "clear" elseif chatbox["chat_font"] == 2 then font = "default-bold" elseif chatbox["chat_font"] == 3 then font = "arial" end
  2. السكربت حقي https://community.multitheftauto.com/in ... ls&id=7787 الله يهديك حمله من جديد + انا كاتب في الكلنت اذا تبي تضيف ماركرات تروح تحط الاحدثيات في الجدول سطر 82
  3. here we go http://html-color-codes.info/
  4. شي رائع بمعنى الكلمه والله اهنيكم
  5. اعتقد قصدك على ذي http://lmgtfy.com/?q=sin+cos+tan+lua#
  6. معناها اذا الماوس كان ظاهر على حسب فهمي
  7. Lel showCursor وبخصوص الضغظ على الزر عادي يسون تايمر مثلا لما تسير 10 ثواني يقفل الزر ونفس الشي بالنسبه لصوره الماوس لما يتحرك المواس 10 ثواني ويوقف راح يتقفل الزر
  8. try this and yeah it is work
  9. مادري عنك مسوي محشر ولا وش وضعك الماوس حق الجهاز هو نفسه حق mta بس مغير الشكل من لعبه mta وبما انه يتحرك في السيرفر فـ كلامي صح المواس حقهم عباره عن صوره تتحرك زي اللبل والاشياء ذي ! وحاطين معه setCameraMatrix
  10. يمكن هم مسوين صوره على شكل ماوس ومخلينها تتحرك لكن مثلا الروم يحرك الماوس الخاص بـ جهازي فـ ذي مستحيله
  11. اول طلب مستحيل ثاني طلب guiSetEnabled
  12. كفو اشتغل بس يروح لوحده بعد كم ثانيه كيف يروح لـ " وحده " ؟
  13. addEventHandler('onPlayerCommand',root, function ( doncommand ) if doncommand == 'marker' then local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) outputChatBox ( 'Successfully create the marker!',source, 255,255,0) end end )
  14. -- Client Side addEventHandler('onClientResourceStart',resourceRoot, function() setPlayerHudComponentVisible('wanted',false) end )
  15. !#Gamer :الإسم سبب الحظر: السب والتخريب والهروب المتكرر من الحظر والتعليق على المواضيع القديمة جداً هل تصوت له؟: لا سبب التصويت (اختياري)ه: لا يوجد --- MOJRM-511 :الإسم سبب الحظر: نشر مودات مسروقة والتهرب من الحظر ونشر ملفات ملغمة هل تصوت له؟: لا سبب التصويت (اختياري)ه: لا يوجد --- fiofa.fado :الإسم سبب الحظر: الاعتراف والتهديد بالقرصنة والتهكير هل تصوت له؟: لا سبب التصويت (اختياري)ه: لا يوجد --- Eissa(Romand) :الإسم سبب الحظر: الهروب المتكرر من الحظر ومخالفة القوانين حتى بعد ان تم تحذيره عدة مرات هل تصوت له؟: لا سبب التصويت (اختياري)ه: لا يوجد --- Mu[T]e~> :الإسم سبب الحظر: الهروب المتكرر من الحظر والسب وتخريب المنتدى بمواضيع تحتوي على سب وقذف، والخروج عن مسارات المواضيع بشكل متكرر وملحوظ هل تصوت له؟: نعم سبب التصويت (اختياري)ه: لا يوجد
  16. لا , ما يستاهل ي ما خش سيرافرات وقاعد يسب سب في الناس
  17. I rewriting the code and it is work ! -- Client Side addEventHandler('onClientVehicleEnter',root, function (thePlayer, seat) local Vehicle = getPedOccupiedVehicle ( localPlayer ) local Health = getElementHealth ( Vehicle ) / 10 if thePlayer == localPlayer then if seat == 0 then if Health >= 90 then outputChatBox('Your Vehicle is healthy '..Health..'',255,255,0) else outputChatBox('Your Vehicle is damged '..Health..'',255,0,0) end end end end ) -- with command addCommandHandler('vh', function () local Vehicle = getPedOccupiedVehicle ( localPlayer ) local Health = getElementHealth ( Vehicle ) / 10 if isPedInVehicle ( localPlayer ) then if Health >= 90 then outputChatBox('Your Vehicle is healthy '..Health..'',255,255,0) else outputChatBox('Your Vehicle is damged '..Health..'',255,0,0) end end end )
  18. https://community.multitheftauto.com/in ... ls&id=1201 وضيف في السطر الـ رابع ذا outputChatBox(''..getPlayerName(player)..' ارسل شوت ',root,255,255,0,true) وعشان تخلي الـ تكست ابيض بدل السطر ذا local textItem = textCreateTextItem( ""..message, 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" )
  19. The Don

    Gate problem.

    Any time m8 and your welcome
  20. The Don

    Gate problem.

    change if getAccountName(getPlayerAccount(player)) == "shooter" then to if getAccountName(getPlayerAccount(thePlayer)) == "shooter" then
  21. it is not the same .. https://community.multitheftauto.com/in ... ls&id=6429
  22. لا تحطه في هالمسار D:\MTA San Andreas\skins او C:\MTA San Andreas\skins وتروح الـ اعددات (Setting) بعدها (Interface) واختار السكن الي حطيته في المسار و اضغظ اوك
×
×
  • Create New...