Ir para conteúdo
Banner com Efeitos

[SQLite] -=[TFS]=- 0.4 8.60 VIP EXP NAO PEGA NAO RECONHECE SÓ PEGA EXP FREE + EXP PREMIUM --[MultipleExp System]--

Featured Replies

Postado

 

 

function onLogin(cid)
    local playersOnline = #getPlayersOnline()
    local premiumRate = 1.5 -- Altere conforme a taxa de experiência para premium
    local vipRate = 4.0 -- Altere conforme a taxa de experiência para VIP

    local playerLevel = getPlayerLevel(cid)
    local baseExp = 99999 -- Altere conforme a experiência base

    if isPremium(cid) then
        baseExp = baseExp * premiumRate
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "--[MultipleExp System]--\nPlayers Online: " .. playersOnline .. "\nSeu Exp Foi Atualizado Para: (" .. baseExp .. "x + 100%)")
    elseif getPlayerStorageValue(cid, 13545) == 1 then
        baseExp = baseExp * vipRate
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "--[MultipleExp System]--\nPlayers Online: " .. playersOnline .. "\nSeu Exp Foi Atualizado Para: (" .. baseExp .. "x + 300%)")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "--[MultipleExp System]--\nPlayers Online: " .. playersOnline .. "\nSeu Exp Foi Atualizado Para: (" .. baseExp .. "x + 0%)")
end
return TRUE
end

 

function onLogin(cid)

local rate = 4.0 -- 300% a mais de exp.
local config = {
welvip = "Voce Tem "..((rate - 1)*300).."% de [EXP]! Aproveite as Vantagens [VIP]-[P.A]!",
not_vip = "Olá jogador Aproveite as Vantagens [VIP]-[P.A], Voce Ganhará "..((rate - 1)*300).."% Mais de XP!",
}

	if isPremium(cid) then
		doPlayerSetExperienceRate(cid, rate)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.welvip)
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.not_vip)
	end
	
	return TRUE
end

 

Editado por Muvukaa (veja o histórico de edições)

Resolvido por Fabi Marzan

Ir para solução
Postado
  • Solução

algo assim?

function onLogin(cid)

local premiumRate = 1.5
local vipRate = 4.0

local config = {
	welpre = "Voce Tem "..((premiumRate - 1)*300).."% de [EXP]! Aproveite as Vantagens [PREMIUM]-[P.A]!",
	welvip = "Voce Tem "..((vipRate - 1)*300).."% de [EXP]! Aproveite as Vantagens [VIP]-[P.A]!",
	not_vip = "Olá jogador Aproveite as Vantagens [VIP]-[P.A], Voce Ganhará "..((vipRate - 1)*300).."% Mais de XP!",
}

	if isPremium(cid) then
		doPlayerSetExperienceRate(cid, premiumRate)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.welpre)
	elseif getPlayerStorageValue(cid, 13545) == 1 then
		doPlayerSetExperienceRate(cid, vipRate)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.welvip)
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, config.not_vip)
	end
	
	return TRUE
end

 

Editado por Fabi Marzan (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo