I've been trying to edit this script, it does when a player have 0 premium days it will remove hes promotion ( advanced promotion i mean voc id 9-10-11-12) but it doesnt works, can anyone help me?
PHP:
function onLogin(cid)
if getPlayerPremiumDays(cid) = 0 and (getPlayerPromotionLevel(cid) >= 9) then
doPlayerSetPromotionLevel(cid, -2)
doPlayerSave(cid)
end
return true
end