Jump to content

Joinquit con los paises


Recommended Posts

Hola denuevo,pueden ayudarme con esto pls intente que en el joinquit apareciera de donde era pero no me funciono:

local toDraw = "" 
local screenWidth, screenHeight = guiGetScreenSize ( ) 
  
g_Root = getRootElement() 
  
addEventHandler('onPlayerJoin',g_Root, 
function () 
    local country = exports['admin']:getPlayerCountry(source) 
    setElementData(source,'Country',country) 
  
  
addEventHandler ( 'onClientPlayerJoin', root, 
    function ( ) 
        toDraw = getPlayerName ( source ):gsub ( "#%x%x%x%x%x%x", "" ) .." (Join).".. tostring(country) .. ' ', getRootElement() 
    end 
) 
  
    end 
) 
  
addEventHandler ( 'onClientPlayerQuit', root, 
    function ( reason ) 
        toDraw = getPlayerName ( source ):gsub ( "#%x%x%x%x%x%x", "" ) .." ( ".. reason .." )" 
    end 
) 
     
function drawText ( ) 
    dxDrawText ( toDraw, 35, screenHeight - 260, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 0.5, "pricedown" ) 
end 
addEventHandler ( "onClientRender", root, drawText ) 
  
  

Link to comment
  • Recently Browsing   0 members

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