Jump to content

مساعدة


Recommended Posts

* سم روابط لطلبك الاول

Here : الاول

* dxCreateTexture :

* Example :

addEventHandler( "onClientRender", root, 
    function() 
        if myImage then 
            dxDrawImage( 100, 350, 300, 350, myImage  ) 
        end 
    end 
) 
  
-- Use 'toggle' command to switch image on and off 
addCommandHandler( "toggle", 
    function() 
        if not myImage then 
            myImage = dxCreateTexture( "moonpig.png" )  -- Create texture 
        else         
            destroyElement( myImage )                 -- Destroy texture 
            myImage = nil 
        end 
    end 
) 
  
-- طبعاً تسوي صوره 
  
-- guieditor بـ 
  
-- ثم تحط الاحداثيات 
  
-- عند 
  
dxDrawImage( 100, 350, 300, 350, myImage  ) 
Link to comment
حط هذا الكود في ملف كلنت ..
local white = tocolor(255,255,255,255) 
function dxDrawImage3D(x,y,z,w,h,m,c,r,...) 
        local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z 
    return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...) 
end 

وطبق عليه مثل ماهو موجود بالصفحة

local face = dxCreateTexture("trollface.png") 
addEventHandler("onClientRender", root, 
    function ( ) 
        dxDrawImage3D ( x, y, z, 20, 20, face, tocolor(255,255,255,255)) 
    end 
) 

x, y, z = الإحداثيات

20, 20 = الحجم

trollface.png = اسم الصورة

اضيف للميتآ ذآ السطر :
client="اصدار لعبتك">

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...