Well, trying to do players(if is premium) when reaches level 20 get promotion automatically, i've tried this before the last return TRUE on login.lua:
but seems not work, players still getting promotion(if is premium), on every lvl, like 1 or 19 or 100
Thanks
Code:
if getPlayerLevel(cid) >= 20 then
doPlayerSetPromotionLevel(cid, isPremium(cid) == FALSE and 0 or 1)
end
but seems not work, players still getting promotion(if is premium), on every lvl, like 1 or 19 or 100
Thanks