• 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!

Lua [Solved][Talkaction] Bank system for TFS 0.4

Gsp

RP
Joined
Jan 3, 2008
Messages
250
Solutions
1
Reaction score
4
Hi guys, does anyone have a properly working bank system for 0.4 3884? I havent been able to find it here.

I made a talkaction script which reads your balance from database (instead of GPs you are carrying) and it is working fine.
Lua:
function onSay(cid, words, param)
local balance = db.getResult("SELECT `balance` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";")
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have " .. balance:getDataInt("balance") .. " gps in yout balance.")
    return true
end

i'm trying to make it so it removes the money and adds it on top of db value but this is beyond my knowledge
this part is all I need. Id appreciate your help thank you!

========
Solved thanks
 
Last edited:
Back
Top