Jump to content

Mr.T9

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by Mr.T9

  1. حط ذا سيرفر addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end ) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if ( getElementData ( source, "download" ) == "Download" ) then cancelEvent ( ) outputChatBox("[ Downloading ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) وحط ذا كلنت addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end )
  2. طيب نفس الوظايف اللي بتسخدمها بس حط اسماء الازرار بدال اسم التاب
  3. مافهمتك !!! قصدك تضيف ايقونات بالخريطة من عندك ؟ بغير شكل الخريطة موب الايقونات اول مرة اسمع فيها تصدق
  4. مافهمتك !!! قصدك تضيف ايقونات بالخريطة من عندك ؟
  5. بنفس كودك ابحث عن guiGridListAddColumn وحط قبله اي اسم تبيه وحط = addEventHandler("onClientResourceStart", resourceRoot, function () if (column) then for id,Item in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1],row,الاسم اللي حطيته,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) end end end)
  6. جرب addEventHandler("onClientResourceStart", resourceRoot, function () if (column) then for id,Item in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1],row,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) end end end)
  7. مانتبهت والله + مشكور عالتنبية
  8. إيه, المشكلة والفراغ كله من مود الأيقونات لكن المود سليم مافيه اي خطأ بس مشكلته يطلع مسافه فشات !؟ عندك حل للمشكلة؟ :المود 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) setTimer(outputChatBox,50,1,"") 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q2.png",true) setTimer(outputChatBox,50,1,"") 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 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
  9. تفضل GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(154, 340, 101, 47, "5000$", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(285, 340, 101, 46, "7000$", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(418, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(549, 340, 101, 46, "10000$", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(15, 60, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 60, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 60, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 60, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(538, 60, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(labelname ,math.random(255),math.random(255),math.random(255)) end guiSetPosition(labelname,xN,xY,false) end )
  10. خطا الكود + ماراح يشتغل كله حاطلي بالجدول staticimage ومانت مستخدمها ومستخدم window ومانت حاطها
  11. شغال تمام GUIEditor = { window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(150, 50, 674, 411, " ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end )
  12. عند الملس playSoundFrontEnd addEventHandler ("onClientMouseMove",root, function () if (source == اسم الزر) then playSoundFrontEnd (27) end end ) بدل 27 بــ ايدي الصوت
  13. راح يطلع عندي زي اللي عندك مادام ماعندي الخلفية + انت تاكد من المسار بالحروف وكل شي
  14. من وين اجيب اسم الصوت؟
  15. ايييه عرفت المشكلة تاكد من مسار الصورة الخطا يانه مافيه صورة بالمود او الميتا مانت ضايف ملف الصورة
  16. تعديل بس GUIEditor = { window = {}, label = {} } GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end )
  17. GUIEditor = { staticimage = {}, label = {} } GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(labelname,math.random(255),math.random(255),math.random(255)) end guiSetPosition(labelname,xN,xY,false) end )
  18. اللوحة والليبل من عندك ذا تحطه تحت اللوحة والليبل وتكتب اسم الليبل بالمطلوب بالكود بس
  19. الكود تبع الاخ Mr-M3AND addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[7],false) xN,xY = x + 2 , y if xN >= 600 then xN = -200 labelname = اسم الليبل guiLabelSetColor(labelname,math.random(255),math.random(255),math.random(255)) end guiSetPosition(labelname,xN,xY,false) end )
  20. playSoundFrontEnd addEventHandler ("onClientGUIClick",root, function () if (source == اسم الزر) then playSoundFrontEnd ( source, id ) end end ) بدل id بــ ايدي الصوت
  21. local bu = اسم الزر setTimer(function()guiSetProperty(bu, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255)))end, 250, 0)
×
×
  • Create New...