Jump to content

El script y el problema


0xCiBeR

Recommended Posts

  • MTA Team

Bueno aca esta mi problema..Lo he intentado con guiGetScreenSize..No anda

Problema:

screen.jpg

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 ) 
  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...