Joe Rod
Discord: joerod1
Hi, this is a more explicit version of money script, that command is available in every server (i mean TFS 0.* series) with the word "!q", it only shows the quantity of cash, so if you have 1kk it shows
With my script it shows by this way:
just remove what is on data/talkactions/money.lua and paste this:
Code:
You have 100000000 gold.
With my script it shows by this way:
Code:
11:37 You have 1 KK
just remove what is on data/talkactions/money.lua and paste this:
Code:
function onSay(cid, words, param, channel)
local money = getPlayerMoney(cid)
local kk = 100000000
local hd = 10000000
if (money > 0 and money < 1000) then
money = money.." gp."
elseif (money >= 1000 and money < hd) then
money = money / 1000 .." K."
elseif (money >= hd and money < kk) then
money = money / 100000 .." K."
elseif (money >= kk) then
money = money / kk .. " KK."
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. money )
return true
end