iPrestege Posted April 2, 2014 Posted April 2, 2014 اللسلام عليكمطلب كود كلام فوق الباد ابي الكلامmy frind getElementPosition getDistanceBetweenPoints3D getScreenFromWorldPosition dxDrawText isElement addEventHandler onClientRender
iPrestege Posted April 2, 2014 Posted April 2, 2014 addEventHandler ( 'onClientRender',root, function ( ) if not isElement ( se ) then return false end local PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ = getElementPosition ( localPlayer ) local PositionScreenX, PositionScreenY, PositionZ = getElementPosition ( se ) local Distance = getDistanceBetweenPoints3D ( PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ, PositionScreenX, PositionScreenY, PositionZ ) if ( Distance < 11 ) then local ScreenX, ScreenY = getScreenFromWorldPosition ( PositionScreenX, PositionScreenY, PositionZ ) if ( ScreenX and ScreenY ) then dxDrawText( 'Hello Friend!', ScreenX, ScreenY, _, _, tocolor( 255, 0, 0, 2555 ), 2, 'pricedown', 'center', 'center' ) end end end ) كودك له القليل من الهرائس جرب ذا ..
iPrestege Posted April 2, 2014 Posted April 2, 2014 addEventHandler ( 'onClientRender',root, function ( ) if not isElement ( se ) then return false end local PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ = getElementPosition ( localPlayer ) local PositionScreenX, PositionScreenY, PositionZ = getElementPosition ( se ) local Distance = getDistanceBetweenPoints3D ( PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ, PositionScreenX, PositionScreenY, PositionZ ) if ( Distance < 11 ) then local ScreenX, ScreenY = getScreenFromWorldPosition ( PositionScreenX, PositionScreenY, PositionZ ) if ( ScreenX and ScreenY ) then dxDrawText( 'Hello Friend!', ScreenX, ScreenY, _, _, tocolor( 255, 0, 0, 2555 ), 2, 'pricedown', 'center', 'center' ) end end end ) كودك له القليل من الهرائس جرب ذا .. الكود على امعاء الباد وانا ابي فوق راسة مايتحرك يعني مايلف عدل على احدايثات z باضافة +1 ..الخ بالتجربة
iPrestege Posted April 2, 2014 Posted April 2, 2014 الكود معقد وكثير في كاتب z في جلب احداثيات البيد ..
iPrestege Posted April 2, 2014 Posted April 2, 2014 (edited) addEventHandler ( 'onClientRender',root, function ( ) if not isElement ( se ) then return false end local PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ = getElementPosition ( localPlayer ) local PositionScreenX, PositionScreenY, PositionZ = getElementPosition ( se ) local Distance = getDistanceBetweenPoints3D ( PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ, PositionScreenX, PositionScreenY, PositionZ ) if ( Distance < 11 ) then local ScreenX, ScreenY = getScreenFromWorldPosition ( PositionScreenX, PositionScreenY, PositionZ+5 ) if ( ScreenX and ScreenY ) then dxDrawText( 'Hello Friend!', ScreenX, ScreenY, _, _, tocolor( 255, 0, 0, 2555 ), 2, 'pricedown', 'center', 'center' ) end end end ) ججرب .. Edited April 2, 2014 by Guest
iPrestege Posted April 2, 2014 Posted April 2, 2014 لو سمحت ابي متل الخط دا بدل pricedown الى default-bold وكبر الخط [ حجمة ] أقصد ..
iPrestege Posted April 2, 2014 Posted April 2, 2014 لو سمحت ابي متل الخط دا بدل pricedown الى default-bold وكبر الخط [ حجمة ] أقصد .. كيف اخلي اطرافة اسود addEventHandler ( 'onClientRender',root, function ( ) if not isElement ( se ) then return false end local PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ = getElementPosition ( localPlayer ) local PositionScreenX, PositionScreenY, PositionZ = getElementPosition ( se ) local Distance = getDistanceBetweenPoints3D ( PlaScreenYerScreenX, PlaScreenYerScreenY, PlaScreenYerZ, PositionScreenX, PositionScreenY, PositionZ ) if ( Distance < 11 ) then local ScreenX, ScreenY = getScreenFromWorldPosition ( PositionScreenX, PositionScreenY, PositionZ+5 ) if ( ScreenX and ScreenY ) then dxDrawText( 'Hello Friend!', ScreenX, ScreenY, _, _, tocolor( 255, 0, 0, 255 ), 2, 'default-bold', 'center', 'center' ) dxDrawText( 'Hello Friend!', ScreenX-2, ScreenY-2, _, _, tocolor( 0, 0, 0, 255 ), 2, 'default-bold', 'center', 'center' ) 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