function AirNewSCR_EnviarServidor(thePlayer, commandName, key)
if key then
if existsKey(key) then
local keyInfo = getKeyInfos(key)
local vipType = keyInfo[1]["vipType"]
local days = keyInfo[1]["days"]
local expires = os.time()
dbExec(database, "DELETE FROM keys WHERE key = ?", key)
outputChatBox(prefix .. "VIP " .. vipType .. " ativado com sucesso.", thePlayer, 255, 255, 255, true)
local moneyAchieved = money[vipType]
if tonumber(days) > 0 then ----- Erro
if isVIP(getAccountID(getPlayerAccount(thePlayer)), vipType) then
local vipInfo = getVIPInfos(getAccountID(getPlayerAccount(thePlayer)), vipType)
if not vipInfo[1]["expires"] == "Permanente" then
expires = tonumber(vipInfo[1]["expires"]) + (tonumber(days) * 24 * 60 * 60)
dbExec(database, "UPDATE vips SET expires = ? WHERE accountId = ? AND vipType = ?", expires, getAccountID(getPlayerAccount(thePlayer)), vipType)
outputChatBox(prefix .. "O teu VIP expira dia: " .. os.date("%c", expires), thePlayer, 255, 255, 255, true)
...