Arsilex Posted April 19, 2012 Posted April 19, 2012 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 ?
Araa Posted April 19, 2012 Posted April 19, 2012 Esto. https://wiki.multitheftauto.com/wiki/DxDrawText
Arsilex Posted April 19, 2012 Author Posted April 19, 2012 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???
Castillo Posted April 19, 2012 Posted April 19, 2012 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 )
Arsilex Posted April 19, 2012 Author Posted April 19, 2012 Sorry si me funciona pero me puedes decir como le puede hacer para que se me cambie de sitio?
Araa Posted April 19, 2012 Posted April 19, 2012 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.
Recommended Posts