zudokuxD Posted August 21, 2014 Share Posted August 21, 2014 function Mensaje() outputChatBox("Presiona F7 para abrir la tienda!!!",0,254,59) outputChatBox("Registrate Para Guardar todo tus Datos \"{SMILIES_PATH}/icon_smile.gif\" alt=\"\" title=\"Smile\" />",249,252,1) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Mensaje) function onresourceStart () bindKey ("F7", "down", UserData) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function UserData() local PlayerName = getPlayerName ( getLocalPlayer() ) local PlayerIP = getPlayerIP() local PlayerSerial = getPlayerSerial() local PlayerMoney = getPlayerMoney( source ) guiSetText ( Jugador, "Jugador.:[ "..PlayerName.."]:.") guiSetText ( IP, "IP.:[ "..PlayerIP.."]:.") guiSetText ( Serial, "Serial.:[ "..PlayerSerial.."]:." ) guiSetText ( Dinero, "Dinero.:[ "..PlayerMoney.."]:.") end Link to comment
xTravax Posted August 21, 2014 Share Posted August 21, 2014 getPlayerIP == Serverside Link to comment
Tomas Posted August 22, 2014 Share Posted August 22, 2014 Intenta usar esto: function getPlayerIPandgetPlayerSerial() serial = getPlayerSerial(source) ip = getPlayerIP(source) setElementData(source,"Serial",serial) setElementData(source,"IP",ip) end addEventHandler("onPlayerLogin",getRootElement(),getPlayerIPandgetPlayerSerial) Y luego en vez de poner getPlayerSerial y getPlayerIP en el Client-side usa getElementData Link to comment
Recommended Posts