Jump to content

Ver dinero por chat


Planir

Recommended Posts

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
  • Recently Browsing   0 members

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