Planir Posted December 10, 2014 Share Posted December 10, 2014 Hola, quisiera saber es como hacer que aparezca el nick del usuario en este comando /cash. ejemplo: yo escribo /cash aparece: Money:13123 y quiero que aparezca Money Planir:13123. Este es el script function checkMoney(thePlayer, command) local money = getPlayerMoney(thePlayer) if (money > 1) then outputChatBox("Money: " .. tostring(money)) end end addCommandHandler("cash", checkMoney) Me dijeron que tenia que usar el getPlayerName pero no se como ponerlo. Link to comment
Castillo Posted December 10, 2014 Share Posted December 10, 2014 outputChatBox ( "Money ".. getPlayerName ( thePlayer ) ..": ".. tostring ( money ) ) Link to comment
Recommended Posts