leandroluck
New Member
- Joined
- Dec 24, 2010
- Messages
- 104
- Reaction score
- 1
original
edited
My vip
I made this edition for vip players, I get 50% more exp. It did not work. I did not have any errors in the console.
Code:
function Player:onGainExperience(source, exp, rawExp)
if not source or source:isPlayer() then
return exp
end
edited
Code:
function Player:onGainExperience(source, exp, rawExp)
if not source or source:isPlayer() then
if self:isVip() then
local exp_extra = 1.5 -- 50% +
exp = exp * exp_extra
end
return exp
end
My vip
Code:
-- player:isVip()
function Player.isVip(self)
return self:getVipTime() > os.time() and true or false
end
I made this edition for vip players, I get 50% more exp. It did not work. I did not have any errors in the console.