Hello there,
Can someone help me with giving a exp bonus for who uses a client instead of another?
I tried to put a code inside this function, but when I login client 12 the exp given is the same as the client 10.
The following image shows how the code is set: (folder: /events/scripts/player.lua)
Here is the code itself:
I don't what I'm doing wrong here. So if someone could help me, I'll be very grateful.
Thanks!
Can someone help me with giving a exp bonus for who uses a client instead of another?
I tried to put a code inside this function, but when I login client 12 the exp given is the same as the client 10.
The following image shows how the code is set: (folder: /events/scripts/player.lua)
Here is the code itself:
Lua:
function Player:onGainExperience(source, exp, rawExp)
if not source or source:isPlayer() then
local clientVersion = player:getClient()
if clientVersion >= 1200 then
exp = exp * 1.3
end
return exp
end
I don't what I'm doing wrong here. So if someone could help me, I'll be very grateful.
Thanks!
Last edited: