MTA Team 0xCiBeR Posted July 17, 2013 MTA Team Posted July 17, 2013 Bueno aca esta mi problema..Lo he intentado con guiGetScreenSize..No anda Problema: Script: local screenWidth, screenHeight = guiGetScreenSize ( ) local myFont1 = dxCreateFont( "bhz.ttf", 20 ) function createText () local kills = getElementData ( localPlayer, "Zombie kills" ) local rank = getElementData ( localPlayer, "Rank" ) dxDrawText ( "Zkills: "..tonumber (kills), 44, screenHeight - 175, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 0.7, myFont1 ) -- Draw zone name text. dxDrawText ( "Zkills: "..tonumber (kills), 44, screenHeight - 177, screenWidth, screenHeight, tocolor ( 120, 0, 0, 255 ), 0.7, myFont1 ) --Sombra dxDrawText ( "Rank: "..tostring (rank), 44, screenHeight - 200, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 0.7, myFont1 )--Sombra -- Draw zone name text. dxDrawText ( "Rank: "..tostring (rank), 44, screenHeight - 202, screenWidth, screenHeight, tocolor ( 0, 66, 0, 255 ), 0.7, myFont1 ) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEventHandler ( "onClientResourceStart", root, HandleTheRendering )
Arsilex Posted July 17, 2013 Posted July 17, 2013 eso asi no funciona e.e pasame las coordenadas que tenias puestas antes de usar el guiGetScreenSize ( )
MTA Team 0xCiBeR Posted July 17, 2013 Author MTA Team Posted July 17, 2013 lo tube desde siempre asi.. tiene que quedar arriba del minimapa para todas las resoluciones
Arsilex Posted July 17, 2013 Posted July 17, 2013 con que resolucion creaste esos dx??? osea los creaste tu o otra persona? es que se necesita resolucion para sacar las coordenadas para todas las pantallas e.e
Sensacion Posted July 18, 2013 Posted July 18, 2013 Deja link para descargar el font, osea el "bhz.ttf"
MTA Team 0xCiBeR Posted July 19, 2013 Author MTA Team Posted July 19, 2013 Deja link para descargar el font, osea el "bhz.ttf" para que necesitas el font?
Sensacion Posted July 20, 2013 Posted July 20, 2013 era para probarlo en mi resolución, y dejarlo funcional, pero en el otro post ya te dijeron como se hace.
Recommended Posts