Untitled

mail@pastecode.io avatar
unknown
lua
2 years ago
590 B
6
Indexable
Never
 -- esto
   if config[keyword].worth > 1 then
        amount = config[keyword].worth
    end

    nobility.addPoints(cid, amount)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have contributed " .. amount .. " " .. name.. " and you have a total of "..nobility.getPoints(cid).." nobility points.")


-- por esto
    nobility.addPoints(cid, config[keyword].worth * amount)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have contributed " .. amount .. " " .. name.. " and you have a total of "..nobility.getPoints(cid).." nobility points.")