Esse função remove points.
exemplo:
Na db você tem 200
doPlayerRemovePremiumPoints(cid, 100)
result removeu 100 e ficou 100
function doPlayerRemovePremiumPoints(cid, removePoints)
local queryPoints = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = "..getPlayerAccountId(cid)..";")
getPoints = queryPoints:getDataInt("premium_points", getPlayerAccountId(cid))
local newPoints = getPoints - removePoints
local updatePoints = db.executeQuery("UPDATE `accounts` SET `premium_points` = ".. newPoints .." WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
return newPoints
end