AE. Posted May 20, 2015 Share Posted May 20, 2015 لوسمحتم ابي كود صورة تطلع فوق راس الاعب Link to comment
MaHdOu?Ch Posted May 20, 2015 Share Posted May 20, 2015 ---Client--- addEventHandler( "onClientRender", root, function () for i,player in ipairs (getElementsByType("player")) do local x, y, z = getElementPosition( player ) local Mx, My, Mz = getCameraMatrix() if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 7 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + 1.1, 0.08 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX-25, WorldPositionY, 40, 40, "اسم الصورة" ) end end end end ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now