Jump to content

Cambio de Joinquit


Arsilex

Recommended Posts

g_Root = getRootElement() 
addEventHandler('onPlayerChangeNick', g_Root, 
  
function ( ) 
     
    local Name = getRootElementNick 
     
     
    dxDrawText ( Name, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) 
     
    dxDrawText ( Name, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" )  
  
end 
) 

Asi???

Link to comment

No, eso no tiene sentido.

local toDraw = "" 
local screenWidth, screenHeight = guiGetScreenSize ( ) 
  
addEventHandler('onClientPlayerJoin', root, 
    function ( ) 
        toDraw = getPlayerName ( source ) .." se a unido al servidor." 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function ( ) 
        toDraw = getPlayerName ( source ) .." se fue del servidor." 
    end 
) 
     
function drawText ( ) 
    dxDrawText ( toDraw, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) 
    dxDrawText ( toDraw, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) 
end 
addEventHandler ( "onClientRender", root, drawText ) 

Link to comment
dxDrawText ( toDraw, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) 
dxDrawText ( toDraw, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) 

en esa parte.. le cambias las coordenadas.

Link to comment
  • Recently Browsing   0 members

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