• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Edited "Show Money" Script

Joe Rod

Discord: joerod1
Joined
Mar 16, 2011
Messages
499
Solutions
2
Reaction score
172
GitHub
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
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
 
Back
Top