EH10 Posted April 10, 2014 Posted April 10, 2014 السلام عليكم طلب فنكشات صوره فوق الماركر يعني صوره خارج اللعبة تكون فوق الماركر
ALw7sH Posted April 10, 2014 Posted April 10, 2014 Event's : onClientRender , onClientResourceStart guiGetScreenSize getElementPosition -- للماركر getScreenFromWorldPosition getCameraMatrix getDistanceBetweenPoints3D dxDrawImage
ALw7sH Posted April 10, 2014 Posted April 10, 2014 (edited) Event's : onClientRender , onClientResourceStart guiGetScreenSize getElementPosition -- للماركر getScreenFromWorldPosition getCameraMatrix getDistanceBetweenPoints3D dxDrawImage Edited April 10, 2014 by Guest
aL.Kfo Posted April 10, 2014 Posted April 10, 2014 Event's : onClientRender , onClientResourceStart guiGetScreenSize getElementPosition -- للماركر getScreenFromWorldPosition getCameraMatrix getDistanceBetweenPoints3D dxDrawImage امم ممكن تقولي وش دخل getCameraMatrix بالي طلبةة
#DRAGON!FIRE Posted April 10, 2014 Posted April 10, 2014 getCameraMatrix : وظيفته بالكود عشان يحدد المسافة بين اللاعب والماركر ذذ اقصد احداثيات الكميرا حقه
aL.Kfo Posted April 10, 2014 Posted April 10, 2014 getCameraMatrix :وظيفته بالكود عشان يحدد المسافة بين اللاعب والماركر ذذ اقصد احداثيات الكميرا حقه اهاها
فاّرس Posted April 10, 2014 Posted April 10, 2014 -- Client Side # local marker = createMarker(x,y,z,'cylinder',3,255,255,255,0) addEventHandler('onClientRender',root,function() local px,py,pz = getElementPosition(localPlayer) local x,y,z = getElementPosition(marker) if getDistanceBetweenPoints3D(px,py,pz,x,y,z) <= 15 then local x,y = getScreenFromWorldPosition(x,y,z) if x and y then dxDrawImage(x,y,x,y,'filePath') end end end )
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