Jump to content

fsdfdsf

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by fsdfdsf

  1. ty alot man, i hve this

    local x, y = guiGetScreenSize() 
      
    bindKey("F2", "down", 
        function() 
            start = getTickCount() 
            addEventHandler("onClientRender", getRootElement(), logo) 
    end) 
      
      
    function logo() 
        showCursor(true) 
        local showing = isCursorShowing () 
        if showing then -- if the cursor is showing 
        local screenx, screeny, worldx, worldy, worldz = getCursorPosition() 
        jaja = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) 
        end 
        destroyElement(jaja) 
    end 
    addEventHandler ( "onClientClick", getRootElement(), logo ) 
      
    

    give me an example from you,idk how to puzzle the codes

    but example with castillo code not getCursorPosition

  2. كيف ممكن اعمل rectangle مثل button?

    local x,y = guiGetScreenSize() 
      
    function panel() 
      
      
    showChat( false ) 
    showCursor( true ) 
      
    dxDrawRectangle ( x/4, y/3.8, x/4, y/2, tocolor ( 255, 0, 0, 100 ) ) 
      
      
    dxDrawRectangle ( x/1.92, y/3.8, x/4, y/2, tocolor ( 0, 255, 0, 100 ) ) 
      
    end 
    addEventHandler ( "onClientRender", getRootElement(), panel) 
    

  3. how can i make rectangle press ( button)?

    my code, i want my rectangles to press?

    local x,y = guiGetScreenSize() 
      
    function panel() 
      
      
    showChat( false ) 
    showCursor( true ) 
      
    dxDrawRectangle ( x/4, y/3.8, x/4, y/2, tocolor ( 255, 0, 0, 100 ) ) 
      
      
    dxDrawRectangle ( x/1.92, y/3.8, x/4, y/2, tocolor ( 0, 255, 0, 100 ) ) 
      
    end 
    addEventHandler ( "onClientRender", getRootElement(), panel) 
      
    

  4. how to make a script, when the player in vehicle it says ( horn has been set, press H to play the horn )

    but if he is not in the vehicle it says (you need a vehicle to set a horn)?

    and save the horn when the player join the server and login.

    thanks

  5. كيف ممكن اجيب الاغاني بالقريد ليست؟

    عندي الاغاني بملف اسمه horns كيف ممكن اجيب الاغاني الي بالملف للقريدليست باللعبه؟

    weTr2V8.png

×
×
  • Create New...