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

!balance talkaction ^^

Exotis

New Member
Joined
May 8, 2009
Messages
52
Reaction score
0
Could someone make a !balance script that shows how much money you have on you? Repp+++ ^^
 
function onSay(cid, words, param)

local config = {
bankSystemEnabled = getBooleanFromString(getConfigInfo('bankSystem')),
playerIsFighting = hasCondition(cid, CONDITION_INFIGHT)
}

if config.bankSystemEnabled == TRUE then
if config.playerIsFighting == FALSE then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your account balance is " .. getPlayerBalance(cid) .. ".")
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bank can not be used in fight.")
return TRUE
end
else
return FALSE
end
end

^^ =D
 
Fixed! :p
function onSay(cid, words, param)

doPlayerSendTextMessage(cid, 27, "Your current balance is " .. getPlayerMoney(cid) .. " gold coins.")
return TRUE
end

Thats all I needed ^^ thx a lot for your help! :D
 
Back
Top