elmarcosmta14 Posted April 26, 2012 Posted April 26, 2012 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 )
Alexs Posted April 26, 2012 Posted April 26, 2012 https://community.multitheftauto.com/index.php?p= ... ls&id=2920 https://community.multitheftauto.com/index.php?p= ... ls&id=1995
elmarcosmta14 Posted April 26, 2012 Author Posted April 26, 2012 Gracias pero que es lo que tiene mal?
Alexs Posted April 26, 2012 Posted April 26, 2012 Gracias pero que es lo que tiene mal? exports['admin']:getPlayerCountry(source) creo que debes usar call
elmarcosmta14 Posted April 26, 2012 Author Posted April 26, 2012 No me funciono el script del link intentare arreglar el que tenia y te digo
Recommended Posts