Jump to content

Cambio de Joinquit


Arsilex

Recommended Posts

Posted

Hola amigos queria saber como acer para que al entrar un jugador al sv el mensaje del chatbox aparezca en otra parte y no en el chatbox por ejemplo ariva a la derecha y cosas asi me pueden decir que tengo que acer ?

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
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???

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

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 ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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.

Hi, this is a signature.

  • Recently Browsing   0 members

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