function onLogin(cid)
local rate = 1.5 -- 50%
local config = {
true_vip = "You gain "..((rate - 1)*100).."% exp more now!",
false_vip = "If you become VIP you will get "..((rate - 1)*100).."% more experience",
vip = isPremium(cid)
}
if (config.vip == TRUE) then
doPlayerSetExperienceRate(cid, rate)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.true_vip)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.false_vip)
end
return TRUE
end