-- Demote player function Ranker.Demote(executor, target) if not Ranker.IsOwner(executor) and not Ranker.IsHeadAdmin(executor) then return false end

local current = Ranker.GetPlayerRank(target) local nextRank = nil

for rank, value in pairs(Ranks) do if value == current - 1 then prevRank = rank break end end

Discover more from WPGIZ

Subscribe now to keep reading and get access to the full archive.

Continue reading