Dr.Xen Posted September 18, 2014 Posted September 18, 2014 السلام عليكم ورحمة الله وبركاته .. اسعد الله اوفتاتكم بكل خير ... الزبدة addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( marker ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( 2467.6999511719,-1658.5999755859,13.300000190735 +1, 0.07 )---<< هنا حطيت احداثيات الماركر if ( WorldPositionX and WorldPositionY ) then dxDrawText ( "حياكم", WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, tocolor(255,255,255,255), 1, "arial" ) end end end ) ابي تصحيح^^
#DRAGON!FIRE Posted September 18, 2014 Posted September 18, 2014 من قالكـ تحط احداثيات الماركر ؟ خذ الكود زي ما هو واستبدل اسم الماركر فقط والتكست ! To Contact Me at Skype : [email protected]
Dr.Xen Posted September 18, 2014 Author Posted September 18, 2014 local marker = createMarker( 2467.6999511719,-1658.5999755859,13.300000190735,"corona",2.5,255,50,100,255 ) addEventHandler('onClientRender',root, function() local x,y,z = getElementPosition(marker) local mX,mY,mZ = getCameraMatrix() if ( getDistanceBetweenPoints3D( mX, mY,mZ,x,y,z ) <= 10 ) then local wX,wY = getScreenFromWorldPosition(x-0.50,y,z + 0.85,0) if wX and wY then dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5,'default-bold') end end end ) شف ^^
#DRAGON!FIRE Posted September 18, 2014 Posted September 18, 2014 صحيح . To Contact Me at Skype : [email protected]
xX|KeMo|Xx Posted September 18, 2014 Posted September 18, 2014 dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5,'default-bold') حط مكان 'default-bold' اسم الخط "default": Tahoma "default-bold": Tahoma Bold "clear": Verdana "arial": Arial "sans": Microsoft Sans Serif "pricedown": Pricedown (GTA's theme text) "bankgothic": Bank Gothic Medium "diploma": Diploma Regular "beckett": Beckett Regular FaceBook: Kamal Skype: kkk-ka MultiGames V.2 in Gta-Pro(1) (2)
nxFairlywell Posted September 18, 2014 Posted September 18, 2014 ابغى اضيف من جهازي اقدر؟ مالي خبره بالخط بس اعتقد هذا يسوي الشغله الي تبيها dxCreateFont Discord ID : nxFairlywell#6895
HassoN Posted September 18, 2014 Posted September 18, 2014 ابغى اضيف من جهازي اقدر؟ local style = dxCreateFont("font.ttf") -- أسم الخط local marker = createMarker(2467.6999511719,-1658.5999755859,13.300000190735,"corona",2.5,255,50,100,255 ) addEventHandler('onClientRender',root, function() local x,y,z = getElementPosition(marker) local mX,mY,mZ = getCameraMatrix() if ( getDistanceBetweenPoints3D( mX, mY,mZ,x,y,z ) <= 10 ) then local wX,wY = getScreenFromWorldPosition(x-0.50,y,z + 0.85,0) if wX and wY then test = dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5, style) end end end ) __ لآتنسا تضيف الخط للمود + تحطه بالميتا ألكود غير مجرب ^ * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
Dr.Xen Posted September 18, 2014 Author Posted September 18, 2014 طيب ابي اذا دخل الماركر تطلع كلام بالشات ..
HassoN Posted September 18, 2014 Posted September 18, 2014 طيب ابي اذا دخل الماركر تطلع كلام بالشات .. addEventHandler("onClientMarkerHit",root, function (hitElement) if hitElement == localPlayer then if source == marker then outputChatBox("Your Text") end end end) * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
Dr.Xen Posted September 18, 2014 Author Posted September 18, 2014 local marker = createMarker( 2467.6999511719,-1658.5999755859,13.300000190735,"corona",2.5,255,50,100,255 ) addEventHandler('onClientRender',root, function() local x,y,z = getElementPosition(marker) local mX,mY,mZ = getCameraMatrix() if ( getDistanceBetweenPoints3D( mX, mY,mZ,x,y,z ) <= 10 ) then local wX,wY = getScreenFromWorldPosition(x-0.50,y,z + 0.85,0) if wX and wY then dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5,'default-bold') end end end ) ابغى هنا ^
HassoN Posted September 18, 2014 Posted September 18, 2014 local style = dxCreateFont("font.ttf") -- أسم الخط local marker = createMarker(2467.6999511719,-1658.5999755859,13.300000190735,"corona",2.5,255,50,100,255 ) addEventHandler('onClientRender',root, function() local x,y,z = getElementPosition(marker) local mX,mY,mZ = getCameraMatrix() if ( getDistanceBetweenPoints3D( mX, mY,mZ,x,y,z ) <= 10 ) then local wX,wY = getScreenFromWorldPosition(x-0.50,y,z + 0.85,0) if wX and wY then test = dxDrawText('Your Text',wX,wY,wX,wY,tocolor(255,255,0),1.5, style) end end end ) addEventHandler("onClientMarkerHit",root, function (hitElement) if hitElement == localPlayer then if source == marker then outputChatBox("Your Text") end end end) * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
HassoN Posted September 19, 2014 Posted September 19, 2014 اشكرك اخي على الرد ... ألعفو وأجبي .. * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
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