Jump to content

Mr.T9

Members
  • Posts

    559
  • Joined

  • Last visited

Posts 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. بنفس كودك ابحث عن

    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) 
    

  3. جرب

    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) 
    

  4. الكلام الي في الديبوق

    فهو من مود الايقونات

    اما مشكلة الفراغ

    امكن انك مسوي تايمر

    يرسل كلام للشات كل مده

    إيه, المشكلة والفراغ كله من مود الأيقونات لكن المود سليم مافيه اي خطأ

    بس مشكلته يطلع مسافه فشات !؟

    عندك حل للمشكلة؟

    :المود

    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
           
  5. يا حب رح اتعبك معي بس ولله انو ذي المشكله مشكله كبيره

    راسي ولعت

    ضض

    المهم

    شف الكود الي بعته لك اخر شي؟

    ابيك تزبط الكلام عليه

    لاني اخذت انا الكود ذا الي ارسلته وشغلته

    ونفس المشكله

    :(

    تفضل

    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 
    ) 
    

  6. GUIEditor = {

    window = {}, <<<<<<<

    label = {}

    }

    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(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) 
         end 
                  guiSetPosition(GUIEditor.label[1],xN,xY,false) 
        end 
    ) 
    

    خطا الكود + ماراح يشتغل كله

    حاطلي بالجدول

    staticimage

    ومانت مستخدمها

    ومستخدم

    window

    ومانت حاطها

    :lol::lol::lol::lol:

  7. اسمع مو مهم الصوره عادي شيلها وركب الوحه الاصليه

    مو مهم اصوره

    انت جربها على الوحه العاديه عندك

    شغال تمام

    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 
    ) 
    

  8. انت تبي عند لمس الزر يطلع صوت ولا عند الضغط عليه ولا وش تبي بالضبط ؟

    عند الملس

    playSoundFrontEnd 
    

    addEventHandler ("onClientMouseMove",root, 
    function () 
    if (source == اسم الزر) then 
    playSoundFrontEnd (27) 
    end 
    end ) 
    

    بدل 27

    بــ

    ايدي الصوت

    0 - 20 Selection sounds

    27 - 30 Bullet sounds

    32 - 33 Selection sounds

    34 Radio static

    35 Stop Radio static

    37 - 38 Tick

    40 Selection sounds

    41 - 42 Tick (no ammo)

    43 - 45 Race countdown

    46 Repair

    47 White noise static

    48 Stop White noise static

    49 Static short

    101 Countdown/selection

  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.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 
    ) 
      
      
    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 
    ) 
      
    

    يا حب ذا الكود كامل شف افتحه عندك وجرب

    راح يطلع عندي زي اللي عندك مادام ماعندي الخلفية + انت تاكد من المسار بالحروف وكل شي

  10. function GUIbutton() 
    if source == GUIbutton then 
    playSound ( --اسم الصوت) 
    end 
    end 
    addEventHandler ( "onClientGUIClick",root,GUIbutton) 
    

    من وين اجيب اسم الصوت؟

    playSoundFrontEnd 
    

    addEventHandler ("onClientGUIClick",root, 
    function () 
    if (source == اسم الزر) then 
    playSoundFrontEnd ( source, id ) 
    end 
    end ) 
    

    بدل id

    بــ

    ايدي الصوت

    0 - 20 Selection sounds

    27 - 30 Bullet sounds

    32 - 33 Selection sounds

    34 Radio static

    35 Stop Radio static

    37 - 38 Tick

    40 Selection sounds

    41 - 42 Tick (no ammo)

    43 - 45 Race countdown

    46 Repair

    47 White noise static

    48 Stop White noise static

    49 Static short

    101 Countdown/selection

  11. الصراحه الصراحه الله يعطيك الف الف الف عافيه

    على مسعدتك الي

    بس ولله ثم ولله

    انو الكالم الي انا اكتبه

    يبقى يمشي مثل ما هو

    حتى لو كانت الوحه فاتحه او مسكره

    يريت تحل لي المشكله لو سمحت لان الكود ابيه ضروري

    لو سمحة

    عادي مو مهم الالوان لو فيه المشكله

    شف الصوره

    http://www.m5zn.com/d/?15714181

    شف كلمت

    shop - baba

    بتلقيها على الشاشه

    ايييه عرفت المشكلة

    تاكد من مسار الصورة

    الخطا يانه مافيه صورة بالمود

    او الميتا مانت ضايف ملف الصورة

  12. الشي

    تعديل بس

    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 
    ) 
    

  13. شباب شكرن على الردكم لي

    بس

    اسمع

    عندي مشكله

    الكلام الي انا اكتبه

    يطلع ورا الوحه مو جو الوحه

    +

    اذا سكرت الوحه

    الكالم يوقف مكانه

    يعني يبقه في الشابه ويوقف

    انا بطرح الكود

    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 
    ) 
    

    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 
    ) 
    

  14. ممكن لو سمحت تطرح لي الكود هون

    لاني اذا ابي اسويه مره ثانيه في لوحه غير تكون لي

    ما رح اعرف الي اذا رجعت لكم

    يريت تطرح الكود وتوضحه بعد اذنك

    الكود تبع الاخ 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 
    ) 
    

  15. شكرن على الرد بس

    انا بعرف انو في كود

    تركبو تحط بس السم الزر

    ما تحط انت صوت الكبسه

    فهمت لي؟

    يعني انا احط اسم الزر

    وبس وهوا الكود يطلع صوت من عنده

    playSoundFrontEnd 
    

    addEventHandler ("onClientGUIClick",root, 
    function () 
    if (source == اسم الزر) then 
    playSoundFrontEnd ( source, id ) 
    end 
    end ) 
    

    بدل id

    بــ

    ايدي الصوت

    0 - 20 Selection sounds

    27 - 30 Bullet sounds

    32 - 33 Selection sounds

    34 Radio static

    35 Stop Radio static

    37 - 38 Tick

    40 Selection sounds

    41 - 42 Tick (no ammo)

    43 - 45 Race countdown

    46 Repair

    47 White noise static

    48 Stop White noise static

    49 Static short

    101 Countdown/selection

×
×
  • Create New...