is it important ?
ex .. without window
function command ( player, Command, amount )
local account = getPlayerAccount ( *** )
if account and not isGuestAccount ( *** ) and tostring (Command) and tonumber (amount) > 0 then
local money = getAccountData ( ***, "Bank" ) or 0
if Command == "get" and money >= amount then
givePlayerMoney ( ***, amount )
setAccountData ( account, "Bank", money - amount )
elseif *** == "set" and getPlayerMoney ( *** ) >= amount then
takePlayerMoney ( player, *** )
setAccountData ( account, "Bank", money + *** )
end
end
end
addCommandHandler ( "set", ***, command ) -- set +amount
addCommandHandler ( "get", root, *** ) -- get +amount
Not Tested
Try to know what is the *** means