local cv_tierchanging = CV_RegisterVar({
    "enabletierchanging",
    "Off",
    CV_NETVAR|CV_CHEAT,
    CV_OnOff,
    nil
})

COM_AddCommand("changetier", function(player,value)
    if (modifiedgame != true and netgame == false) CONS_Printf(player, "Your game is not Modified, do any cheat command to enable this command.") return end
	if (netgame == true and cv_tierchanging.value == 0) CONS_Printf(player, "Tier Switching is Disabled, tell the admin to do enabletierchanging on to enable this command.") return end
    if not value
        CONS_Printf(player, "tier <value>: Switch tier for free!")
        return
    end
    local tiern = tonumber(value)
    if tiern >= 1 and tiern <=3
        player.tier = (tiern)-1
    else
        CONS_Printf(player, "Invalid Value")
    end
end)